import { Toast } from "vant";
import Vue from "vue";
import Router from "vue-router";
import store from "../store/index";

import { is_weixin } from "../utils/common.js";

Vue.use(Router);

var whiteList = [];
if (process.env.VUE_APP_DEFAULT_PAGE == "/palogin") {
    whiteList = []; //平安专属
} else {
    whiteList = [
        "/registerPhone",
        "/register",
        "/index",
        "/my",
        "/registerInfo",
        "/Train/ExamSign",
        "/loginIDCard",
        "/couponactivity",
        "/PARegister",
        "/follow",
        "/followSuccess",
        "/codestu",
        "/qtyjReport/StudyFirst",
        "/qtyjReport/study",
    ];
}

const router = new Router({
    routes: [{
            path: "/",
            redirect: process.env.VUE_APP_DEFAULT_PAGE ?
                process.env.VUE_APP_DEFAULT_PAGE : "/login",
        },
        //首页应该合并到Home中   目前并没有合并（暂不合并）
        {
            path: "/index",
            name: "index",
            component: (resolve) => require(["@/views/index/index"], resolve),
            meta: {
                title: "首页",
            },
            children: [{
                path: "/privacy",
                component: (resolve) => require(["@/views/index/privacy"], resolve),
                meta: {
                    title: "隐私政策申明",
                },
            }, ],
        },
        {
            path: "/MoreTodo",
            name: "moreToDo",
            component: (resolve) =>
                require(["@/views/index/components/MoreTodo"], resolve),
            meta: {
                title: "待办事项",
            },
        },
        {
            path: "/transfer",
            component: (resolve) => require(["@/views/index/transfer"], resolve),
            meta: {
                title: "",
            },
        },
        {
            path: "/bindCompany",
            component: (resolve) => require(["@/views/index/bindCompany"], resolve),
            meta: {
                title: "绑定公司",
            },
        },
        {
            path: "/cctv",
            component: () => import("@/views/cctv/index"),
            meta: {
                title: "视频监控",
            }
        },
        {
            path: "/cctv/detail",
            component: () => import('@/views/cctv/detail'),
            meta: {
                title: "监控预览",
            },
        },
        {
            path: "/test",
            component: (resolve) => require(["@/views/test/test"], resolve),
            meta: {
                title: "益戈风控H5-测试",
            },
        },
        //通用界面
        {
            path: "/Common",
            component: (resolve) => require(["@/views/base/index"], resolve),
            meta: {
                title: "通用",
            },
            children: [{
                    path: "PdfView",
                    component: (resolve) => require(["@/views/base/PdfView"], resolve),
                    meta: {
                        title: "文件预览",
                    },
                },
                {
                    path: "ApproveHistory",
                    component: (resolve) =>
                        require(["@/views/common/approveHistory"], resolve),
                    meta: {
                        title: "审批历史",
                    },
                },

            ],
        },
        //登录界面相关
        {
            path: "/login",
            component: (resolve) => require(["@/views/login/index"], resolve),
            meta: {
                title: "登录",
            },

            children: [{
                    path: "/login",
                    component: (resolve) => require(["@/views/login/login"], resolve),
                    meta: {
                        title: "登录",
                    },
                },
                {
                    path: "/wxwork",
                    component: (resolve) => require(["@/views/login/wxwork"], resolve),
                    meta: {
                        title: "",
                    },
                },
                {
                    path: "/wxlogin",
                    component: (resolve) => require(["@/views/login/wxlogin"], resolve),
                    meta: {
                        title: "授权启动",
                    },
                },
                {
                    path: "/index2",
                    component: (resolve) => require(["@/views/index/index2"], resolve),
                    meta: {
                        title: "",
                    },
                },
                {
                    path: "/scan",
                    component: (resolve) => require(["@/views/login/scan"], resolve),
                    meta: {
                        title: "扫一扫，进入下一步",
                    },
                },
                {
                    path: "/registerIDCard",
                    component: (resolve) =>
                        require(["@/views/login/registerIDCard"], resolve),
                    meta: {
                        title: "注册",
                    },
                },
                {
                    path: "/loginIDCard",
                    component: (resolve) =>
                        require(["@/views/login/loginIDCard"], resolve),
                    meta: {
                        title: "验证您的身份证",
                    },
                },
                {
                    path: "/logintest",
                    component: (resolve) => require(["@/views/login/logintest"], resolve),
                    meta: {
                        title: "登录测试",
                    },
                },
                {
                    path: "/registerPhone",
                    component: (resolve) =>
                        require(["@/views/login/registerPhone"], resolve),
                    meta: {
                        title: "验证注册手机",
                    },
                },
                {
                    path: "/register",
                    component: (resolve) => require(["@/views/login/register"], resolve),
                    meta: {
                        title: "填写注册信息",
                    },
                },
                {
                    path: "/registerInfo",
                    component: (resolve) =>
                        require(["@/views/login/registerInfo"], resolve),
                    meta: {
                        title: "填写注册信息",
                    },
                },
                {
                    path: "/forgetPassword",
                    component: (resolve) =>
                        require(["@/views/login/forgetPassword"], resolve),
                    meta: {
                        title: "忘记密码",
                    },
                },
                {
                    path: "/follow",
                    component: (resolve) => require(["@/views/login/follow"], resolve),
                    meta: {
                        title: "",
                    },
                },
                {
                    path: "/followSuccess",
                    component: (resolve) =>
                        require(["@/views/login/followSuccess"], resolve),
                    meta: {
                        title: "认证成功",
                    },
                },
            ],
        },
        // 我的
        {
            path: "/Home/My",
            component: (resolve) => require(["@/views/Home/index"], resolve),
            redirect: "/Home/My",
            meta: {
                title: "我的",
            },
            children: [{
                    path: "/My",
                    meta: {
                        title: "我的",
                    },
                    component: (resolve) => require(["@/views/Home/My/My"], resolve),
                },
                {
                    path: "problem",
                    meta: {
                        title: "问题反馈",
                    },
                    component: (resolve) => require(["@/views/Home/My/Problem"], resolve),
                },
                {
                    path: "about",
                    meta: {
                        title: "关于风险管控H5",
                    },
                    component: (resolve) => require(["@/views/Home/My/About"], resolve),
                },
                {
                    path: "info",
                    meta: {
                        title: "个人信息",
                    },
                    component: (resolve) => require(["@/views/Home/My/MyInfo"], resolve),
                },
                {
                    path: "email",
                    meta: {
                        title: "修改邮箱",
                    },
                    component: (resolve) => require(["@/views/Home/My/MyEmail"], resolve),
                },
                {
                    path: "phone",
                    meta: {
                        title: "我的手机",
                    },
                    component: (resolve) => require(["@/views/Home/My/MyPhone"], resolve),
                },
                {
                    path: "ChangePhone",
                    meta: {
                        title: "修改手机",
                    },
                    component: (resolve) =>
                        require(["@/views/Home/My/ChangePhone"], resolve),
                },
                {
                    path: "changePassword",
                    meta: {
                        title: "修改密码",
                    },
                    component: (resolve) =>
                        require(["@/views/Home/My/ChangePassword"], resolve),
                },
                {
                    path: "policy",
                    meta: { title: "第三方SDK信息-" + process.env.VUE_APP_TITLE },
                    component: (resolve) => require(["@/views/Home/My/policy"], resolve),
                },
            ],
        },
        // 基本信息
        {
            path: "/BaseInfo",
            component: (resolve) => require(["@/views/base/index"], resolve),
            redirect: "/BaseInfo",
            meta: {
                title: "企业基本信息",
            },
            children: [{
                    path: "/BaseInfo",
                    meta: { title: "企业基本信息" },
                    component: (resolve) =>
                        require(["@/views/base/components/List"], resolve),
                },
                {
                    path: "QRCode",
                    meta: { title: "企业二维码" },
                    component: (resolve) =>
                        require(["@/views/base/components/QRCode"], resolve),
                },
                {
                    path: "Map",
                    meta: { title: "地图" },
                    component: (resolve) =>
                        require(["@/views/base/components/Amap"], resolve),
                },
                {
                    path: "BaseDetail",
                    name: "BaseDetail",
                    meta: { title: "编辑基本信息" },
                    component: (resolve) =>
                        require(["@/views/base/components/BaseInfoManage"], resolve),
                },
                {
                    path: "User",
                    name: "UserManage",
                    meta: { title: "编辑管理人员信息" },
                    component: (resolve) =>
                        require(["@/views/base/components/UserManage"], resolve),
                },
                {
                    path: "Risk",
                    name: "RiskManage",
                    meta: { title: "编辑风险管理信息" },
                    component: (resolve) =>
                        require(["@/views/base/components/RiskManage"], resolve),
                },
                {
                    path: "Metal",
                    meta: { title: "编辑高温熔断金属" },
                    component: (resolve) =>
                        require(["@/views/base/components/Metal"], resolve),
                },
                {
                    path: "Gas",
                    name: "Gas",
                    meta: { title: "编辑关键风险点" },
                    component: (resolve) =>
                        require(["@/views/base/components/BaseInfoManage2"], resolve),
                },
                {
                    path: "HarmFactor",
                    meta: { title: "编辑职业病危害因素" },
                    component: (resolve) =>
                        require(["@/views/base/components/HarmFactor"], resolve),
                },
                {
                    path: "SpecialOperation",
                    name: "SpecialOperation",
                    meta: { title: "编辑特种作业" },
                    component: (resolve) =>
                        require(["@/views/base/components/SpecialOperation"], resolve),
                },
                {
                    path: "Industry",
                    meta: { title: "选择行业" },
                    component: (resolve) =>
                        require(["@/views/base/components/Industry"], resolve),
                },
                {
                    path: "IndustryDescribe",
                    meta: { title: "行业描述" },
                    component: (resolve) =>
                        require(["@/views/base/components/IndustryDescribe"], resolve),
                },
                {
                    path: "Table",
                    meta: { title: "涉危险化学品" },
                    component: (resolve) =>
                        require(["@/views/base/components/table"], resolve),
                },
            ],
        },
        {
            path:'/FK',
            component: (resolve) => require(["@/views/base/index"], resolve),
            redirect:'/FK',
            meta:{
                title:'监管列表'
            },
            children: [{
                path: "/FKCompanyList",
                meta: { title: "监管列表" },
                component: (resolve) =>
                    require(["@/views/fk/fkcompanylist"], resolve),
            },
            {
                path: "/FKCompanyInfoDetail",
                meta: { title: "" },
                component: (resolve) =>
                    require(["@/views/fk/fkInfoDetail"], resolve),
            },     
            {
                path: "/FKCompanyListSecond",
                meta: { title: "" },
                component: (resolve) =>
                    require(["@/views/fk/fkCompanylist2"], resolve),
            },
            {
                path: "/FKMap",
                meta: { title: "风险地图" },
                component: (resolve) =>
                    require(["@/views/fk/fkMap"], resolve),
            }
        
        
        ]
        },
        // 信息中心
        {
            path: "/CommonInfo",
            component: (resolve) => require(["@/views/info/index"], resolve),
            redirect: "/CommonInfo",
            meta: {
                title: "信息中心",
            },
            children: [{
                    path: "/CommonInfo",
                    meta: { title: "信息中心" },
                    component: (resolve) => require(["@/views/info/info/List"], resolve),
                },
                {
                    path: "InfoDetail",
                    meta: { title: "信息详情" },
                    component: (resolve) =>
                        require(["@/views/info/info/InfoDetail"], resolve),
                },
                {
                    path: "ShowAttach",
                    meta: { title: "附件详情" },
                    component: (resolve) =>
                        require(["@/views/info/info/showFileAttach"], resolve),
                },
                {
                    path: "InfoCheckplan",
                    name: "InfoCheckplan",
                    meta: { title: "检查计划清单" },
                    component: (resolve) =>
                        require(["@/views/info/info/InfoCheckplan"], resolve),
                },
            ],
        },
        // 事故案例
        {
            path: "/Case",
            component: (resolve) => require(["@/views/case/index"], resolve),
            redirect: "/Case",
            meta: {
                title: "事故案例",
            },
            children: [{
                    path: "/Case",
                    meta: { title: "事故案例" },
                    component: (resolve) => require(["@/views/case/case/List"], resolve),
                },
                {
                    path: "CaseDetail",
                    meta: { title: "事故案例详情", scale: "true" },
                    component: (resolve) =>
                        require(["@/views/case/case/DocDetail"], resolve),
                },
            ],
        },
        // 风险位置
        {
            path: "/Site_RiskUnit",
            component: (resolve) => require(["@/views/risk/index"], resolve),
            redirect: "/Site_RiskUnit",
            meta: {
                title: "风险位置",
            },
            children: [{
                    path: "/Site_RiskUnit",
                    name: "Site_RiskUnit",
                    meta: { title: "风险位置" },
                    component: (resolve) =>
                        require(["@/views/risk/RiskUnit/list"], resolve),
                },
                {
                    path: "RiskLocation",
                    name: "RiskLocation",
                    meta: { title: "风险位置" },
                    component: (resolve) =>
                        require(["@/views/risk/RiskUnit/riskLocation"], resolve),
                },
                {
                    path: "RiskLocationDetail",
                    meta: { title: "风险位置详情" },
                    component: (resolve) =>
                        require(["@/views/risk/RiskUnit/riskLocationDetail"], resolve),
                },
                {
                    path: "RiskUnitAreaDetail",
                    meta: { title: "风险区域详情" },
                    component: (resolve) =>
                        require(["@/views/risk/RiskUnit/riskUnitAreaDetail"], resolve),
                },

                {
                    path: "QRCode",
                    meta: { title: "风险位置二维码" },
                    component: (resolve) =>
                        require(["@/views/base/components/QRCode"], resolve),
                },
                {
                    path: "StaffInfo",
                    meta: { title: "员工信息" },
                    component: (resolve) =>
                        require(["@/views/risk/RiskUnit/staffInfo"], resolve),
                },
                {
                    path: "StaffDetail",
                    meta: { title: "员工详情" },
                    component: (resolve) =>
                        require(["@/views/risk/RiskUnit/staffDetail"], resolve),
                },
                {
                    path: "InspectRecord",
                    meta: { title: "风险位置检查记录" },
                    component: (resolve) =>
                        require(["@/views/risk/RiskUnit/InspectRecord"], resolve),
                },
                {
                    path: "RiskUnitTemplate",
                    meta: { title: "风险位置检查表" },
                    component: (resolve) =>
                        require(["@/views/risk/RiskUnit/riskUnitTemplate"], resolve),
                },
                {
                    path: "CheckAreaDetailPage",
                    name: "CheckAreaDetailPage",
                    meta: { title: "风险位置隐患记录" },
                    component: (resolve) =>
                        require([
                            "@/views/risk/RiskUnit/checkAreaDangerDetailPage",
                        ], resolve),
                },
                {
                    path: "CheckAreaPlanTaskPage",
                    name: "CheckAreaPlanTaskPage",
                    meta: { title: "风险位置检查任务-计划" },
                    component: (resolve) =>
                        require([
                            "@/views/risk/RiskUnit/checkAreaPlanDangerTaskPage",
                        ], resolve),
                },
                {
                    path: "CheckAreaTaskPage",
                    name: "CheckAreaTaskPage",
                    meta: { title: "风险位置检查任务" },
                    component: (resolve) =>
                        require(["@/views/risk/RiskUnit/checkAreaDangerTaskPage"], resolve),
                },
            ],
        },
        // 预警
        {
            path: "/Warning",
            component: (resolve) => require(["@/views/warn/index"], resolve),
            redirect: "/Warning",
            meta: {
                title: "预警",
            },
            children: [{
                    path: "/Warning",
                    meta: { title: "预警" },
                    component: (resolve) =>
                        require(["@/views/warn/Warning/List"], resolve),
                },
                {
                    path: "DangerDetail",
                    meta: { title: "隐患详情" },
                    component: (resolve) =>
                        require(["@/views/warn/Warning/DangerDetail"], resolve),
                },
            ],
        },
        // 责任制
        {
            path: "/ResponsibilityManager",
            component: (resolve) =>
                require(["@/views/responsibility/index"], resolve),
            redirect: "/ResponsibilityManager",
            meta: {
                title: "责任制",
            },
            children: [{
                    path: "/ResponsibilityManager",
                    meta: { title: "责任制" },
                    component: (resolve) =>
                        require(["@/views/responsibility/components/List"], resolve),
                },
                {
                    path: "GridManage",
                    meta: { title: "网格化管理" },
                    component: (resolve) =>
                        require(["@/views/responsibility/components/Detail"], resolve),
                },
                {
                    path: "DepartmentBlame",
                    meta: { title: "部门安全责任制" },
                    component: (resolve) =>
                        require(["@/views/responsibility/components/Detail"], resolve),
                },
                {
                    path: "PostBlame",
                    meta: { title: "岗位安全责任制" },
                    component: (resolve) =>
                        require(["@/views/responsibility/components/Detail"], resolve),
                },
            ],
        },
        //码上学/码上报
        {
            path: "/Codestu",
            component: (resolve) => require(["@/views/codestu/index.vue"], resolve),
            meta: { title: "码上学" },
        },
        // 规章制度
        {
            path: "/Folder",
            component: (resolve) => require(["@/views/Folder/index"], resolve),
            redirect: "/Folder",
            meta: { title: "制度化管理" },
            children: [{
                    path: "/Folder",
                    meta: { title: "目标职责" },
                    component: (resolve) =>
                        require(["@/views/Folder/Folder/List"], resolve),
                },
                {
                    path: "/Folder2",
                    component: (resolve) =>
                        require(["@/views/Folder/Folder/List"], resolve),
                    meta: { title: "制度化管理" },
                },
                {
                    path: "/Folder3",
                    meta: { title: "应急预案" },
                    component: (resolve) =>
                        require(["@/views/Folder/Folder/List"], resolve),
                },
                {
                    path: "/Folder4",
                    meta: { title: "职业健康" },
                    component: (resolve) =>
                        require(["@/views/Folder/Folder/List"], resolve),
                },
                {
                    path: "/Folder5",
                    meta: { title: "安全绩效考核" },
                    component: (resolve) =>
                        require(["@/views/Folder/Folder/List"], resolve),
                },
                {
                    path: "/Folder7",
                    meta: { title: "应急管理" },
                    component: (resolve) =>
                        require(["@/views/Folder/Folder/List"], resolve),
                },
                {
                    path: "/Folder8",
                    meta: { title: "隐患排查" },
                    component: (resolve) =>
                        require(["@/views/Folder/Folder/List"], resolve),
                },
                {
                    path: "/Folder88",
                    meta: { title: "隐患排查" },
                    component: (resolve) =>
                        require(["@/views/Folder/Folder/List2"], resolve),
                },
                {
                    path: "/Folder9",
                    meta: { title: "安全台账" },
                    component: (resolve) =>
                        require(["@/views/Folder/Folder/List"], resolve),
                },
                {
                    path: "/Folder10",
                    meta: { title: "教育培训" },
                    component: (resolve) =>
                        require(["@/views/Folder/Folder/List"], resolve),
                },
                {
                    path: "/RegulatoryFramework",
                    component: (resolve) => require(["@/views/Folder/index"], resolve),
                    redirect: "/RegulatoryFramework",
                    meta: {
                        title: "制度化管理",
                    },
                    children: [{
                            path: "/RegulationManual",
                            meta: { title: "管理手册" },
                            component: (resolve) =>
                                require(["@/views/Folder/guidelineReg/list"], resolve),
                        },
                        {
                            path: "/RegulationOperation",
                            meta: { title: "操作规程" },
                            component: (resolve) =>
                                require(["@/views/Folder/guidelineReg/list"], resolve),
                        },
                        {
                            path: "/GuidelineEntrustedRegPostDuty",
                            meta: { title: "规章制度(程序)[签名]" }, //   "安全生产制度汇编[签名] 共用
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/guidelineReg/GuidelineEntrustedRegPostDuty",
                                ], resolve),
                        },
                        {
                            path: "Detail",
                            meta: { title: "安全生产制度汇编详情" }, //"规章制度(程序)详情"   管理手册详情  操作规程详情
                            component: (resolve) =>
                                require(["@/views/Folder/guidelineReg/detail"], resolve),
                        },
                        {
                            path: "/GuidelineRegCommonCompile",
                            meta: { title: "安全生产制度汇编" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/guidelineReg/guidelineRegList",
                                ], resolve),
                        },
                        {
                            path: "/GuidelineReg",
                            meta: { title: "规章制度(程序)" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/guidelineReg/guidelineRegList",
                                ], resolve),
                        },
                    ],
                },
                {
                    path: "/SiteAppointment",
                    component: (resolve) => require(["@/views/Folder/index"], resolve),
                    redirect: "/SiteAppointment",
                    meta: {
                        title: "安全管理机构人员任命",
                    },
                    children: [{
                            path: "/Site_Appointment",
                            // name: 'Site_Appointment',
                            meta: { title: "安全管理机构人员任命" },
                            component: (resolve) =>
                                require(["@/views/Folder/siteAppointment/List"], resolve),
                        },
                        {
                            path: "/SiteappointmentAdd",
                            // name: 'SiteappointmentAdd',
                            meta: { title: "安全管理机构人员任命[新增]" },
                            component: (resolve) =>
                                require(["@/views/Folder/siteAppointment/edit"], resolve),
                        },

                        {
                            path: "/SiteappointmentEdit",
                            // name: 'SiteappointmentEdit',
                            meta: { title: "安全管理机构人员任命[编辑]" },
                            component: (resolve) =>
                                require(["@/views/Folder/siteAppointment/edit"], resolve),
                        },
                        {
                            path: "/SiteappointmentView",
                            // name: 'SiteappointmentView',
                            meta: { title: "安全管理机构人员任命[详情]" },
                            component: (resolve) =>
                                require(["@/views/Folder/siteAppointment/view"], resolve),
                        },
                    ],
                },
                {
                    // SitePromiseRecord
                    path: "/Company",
                    component: (resolve) => require(["@/views/Folder/index"], resolve),
                    redirect: "/Company",
                    meta: {
                        title: "子公司安全目标生产责任书",
                    },

                    children: [{
                            path: "/CompanyProductionSafety",
                            meta: { title: "子公司安全目标生产责任书" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/companyProductionSafety/list",
                                ], resolve),
                        },
                        {
                            path: "/CompanyProductionSafetyAdd",
                            meta: { title: "子公司安全目标生产责任书[新增]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/companyProductionSafety/edit",
                                ], resolve),
                        },
                        {
                            path: "/CompanyProductionSafetyEdit",
                            meta: { title: "子公司安全目标生产责任书[编辑]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/companyProductionSafety/edit",
                                ], resolve),
                        },
                        {
                            path: "/CompanyProductionSafetyView",
                            meta: { title: "子公司安全目标生产责任书[详情]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/companyProductionSafety/view",
                                ], resolve),
                        },
                    ],
                },
                {
                    // SitePromiseRecord
                    path: "/Site_PromiseRecord",
                    component: (resolve) => require(["@/views/Folder/index"], resolve),
                    redirect: "/Site_PromiseRecord",
                    meta: {
                        title: "安全管理机构人员任命",
                    },

                    children: [{
                            path: "/Site_PromiseRecord",
                            meta: { title: "安全生产责任承诺书" },
                            component: (resolve) =>
                                require(["@/views/Folder/sitePromiseRecord/list"], resolve),
                        },
                        {
                            path: "/SitePromiseRecordAdd",
                            meta: { title: "安全管理机构人员承诺书[新增]" },
                            component: (resolve) =>
                                require(["@/views/Folder/sitePromiseRecord/edit"], resolve),
                        },
                        {
                            path: "/SitePromiseRecordEdit",
                            meta: { title: "安全管理机构人员承诺书[编辑]" },
                            component: (resolve) =>
                                require(["@/views/Folder/sitePromiseRecord/edit"], resolve),
                        },

                        {
                            path: "/SitePromiseRecordView",
                            meta: { title: "安全管理机构人员承诺书[详情]" },
                            component: (resolve) =>
                                require(["@/views/Folder/sitePromiseRecord/view"], resolve),
                        },
                    ],
                },
                {
                    path: "/ProductionSafety",
                    component: (resolve) => require(["@/views/Folder/index"], resolve),
                    redirect: "/ProductionSafety",
                    meta: {
                        title: "安全生产责任书",
                    },
                    children: [{
                            path: "/ProductionSafety",
                            // name: 'ProductionSafety',
                            meta: { title: "安全生产责任书" },
                            component: (resolve) =>
                                require(["@/views/Folder/productionSafety/list"], resolve),
                        },
                        {
                            path: "/ProductionSafetyAdd",
                            // name: 'ProductionSafetyAdd',
                            meta: { title: "安全生产责任书[新增]" },
                            component: (resolve) =>
                                require(["@/views/Folder/productionSafety/edit"], resolve),
                        },
                        {
                            path: "/ProductionSafetyEdit",
                            // name: 'ProductionSafetyEdit',
                            meta: { title: "安全生产责任书[编辑]" },
                            component: (resolve) =>
                                require(["@/views/Folder/productionSafety/edit"], resolve),
                        },
                        {
                            path: "/ProductionSafetyView",
                            // name: 'ProductionSafetyView',
                            meta: { title: "安全生产责任书[详情]" },
                            component: (resolve) =>
                                require(["@/views/Folder/productionSafety/view"], resolve),
                        },

                        {
                            path: "/ProductionSafetySign",
                            // name: 'ProductionSafetySign',
                            meta: { title: "责任书[签名]" },
                            component: (resolve) =>
                                require(["@/views/Folder/productionSafety/Sign"], resolve),
                        },
                    ],
                },
                {
                    path: "/SiteProductCheckRecord",
                    component: (resolve) => require(["@/views/Folder/index"], resolve),
                    redirect: "/SiteProductCheckRecord",
                    meta: {
                        title: "安全生产考核记录",
                    },
                    children: [{
                            path: "/Site_ProductCheckRecord",
                            meta: { title: "安全生产考核记录" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/siteProductCheckRecord/list",
                                ], resolve),
                        },
                        {
                            path: "/SiteProductCheckRecordAdd",
                            meta: { title: "安全生产考核记录[新增]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/siteProductCheckRecord/edit",
                                ], resolve),
                        },

                        {
                            path: "/SiteProductCheckRecordEdit",
                            meta: { title: "安全生产考核记录[编辑]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/siteProductCheckRecord/edit",
                                ], resolve),
                        },

                        {
                            path: "/SiteProductCheckRecordView",
                            meta: { title: "安全生产考核记录[详情]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/siteProductCheckRecord/view",
                                ], resolve),
                        },
                    ],
                },
                {
                    path: "/Site_SafeCost",
                    component: (resolve) => require(["@/views/Folder/index"], resolve),
                    redirect: "/Site_SafeCost",
                    meta: {
                        title: "安全生产考核记录",
                    },
                    children: [{
                            path: "/Site_SafeCost",
                            meta: { title: "安全生产考核记录" },
                            component: (resolve) =>
                                require(["@/views/Folder/SiteSafeCost/List"], resolve),
                        },

                        {
                            path: "/SiteSafeCostRecordAdd",
                            meta: { title: "安全生产费用使用[新增]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/SiteSafeCost/SiteSafeCostRecordDetail",
                                ], resolve),
                        },
                        {
                            path: "/SiteSafeCostRecordEdit",
                            meta: { title: "安全生产费用使用[编辑]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/SiteSafeCost/SiteSafeCostRecordDetail",
                                ], resolve),
                        },

                        {
                            path: "/SiteSafeCostRecordView",
                            meta: { title: "安全生产费用使用[详情]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/SiteSafeCost/SiteSafeCostRecordView",
                                ], resolve),
                        },

                        {
                            path: "/SiteInjuryRecordDetail",
                            meta: { title: "" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/SiteSafeCost/SiteInjuryRecordDetail",
                                ], resolve),
                            //
                        },

                        {
                            path: "/SiteInjuryRecordView",
                            meta: { title: "工商保险台账[详情]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/SiteSafeCost/SiteInjuryRecordView",
                                ], resolve),
                            //
                        },
                    ],
                },
                {
                    path: "/CommonMeeting",
                    component: (resolve) => require(["@/views/Folder/index"], resolve),
                    redirect: "/CommonMeeting",
                    meta: {
                        title: "会议纪要",
                    },
                    children: [{
                            path: "/CommonMeetingList",
                            meta: { title: "会议纪要" },
                            component: (resolve) =>
                                require(["@/views/Folder/CommonMeeting/List"], resolve),
                        },
                        {
                            path: "/CommonMeetingAdd",
                            meta: { title: "会议纪要[新增]" },
                            component: (resolve) =>
                                require(["@/views/Folder/CommonMeeting/Edit"], resolve),
                        },
                        {
                            path: "/CommonMeetingEdit",
                            meta: { title: "会议纪要[编辑]" },
                            component: (resolve) =>
                                require(["@/views/Folder/CommonMeeting/Edit"], resolve),
                        },
                        {
                            path: "/CommonMeetingView",
                            meta: { title: "会议纪要[详情]" },
                            component: (resolve) =>
                                require(["@/views/Folder/CommonMeeting/View"], resolve),
                        },
                    ],
                },
                {
                    path: "/ZXTFGuidelineReg",
                    component: (resolve) => require(["@/views/Folder/index"], resolve),
                    redirect: "/ZXTFGuidelineReg",
                    meta: {
                        title: "规章制度",
                    },
                    children: [{
                        path: "/ZXTFGuidelineReg",
                        meta: { title: "规章制度(程序)" },
                        component: (resolve) =>
                            require(["@/views/Folder/ZXTFGuidelineReg/List"], resolve),
                    }, ],
                },
                {
                    path: "/ZXTFGuidelineHandBook",
                    component: (resolve) => require(["@/views/Folder/index"], resolve),
                    redirect: "/ZXTFGuidelineHandBook",
                    meta: {
                        title: "管理手册",
                    },
                    children: [{
                        path: "/ZXTFGuidelineHandBook",
                        meta: { title: "管理手册" },
                        component: (resolve) =>
                            require(["@/views/Folder/ZXTFGuidelineHandBook/List"], resolve),
                    }, ],
                },
                {
                    //

                    path: "/ZXTFGuidelineOperateRule",
                    component: (resolve) => require(["@/views/Folder/index"], resolve),
                    redirect: "/ZXTFGuidelineOperateRule",
                    meta: {
                        title: "操作规程",
                    },
                    children: [{
                        path: "/ZXTFGuidelineOperateRule",
                        meta: { title: "操作规程" },
                        component: (resolve) =>
                            require([
                                "@/views/Folder/ZXTFGuidelineOperateRule/List",
                            ], resolve),
                    }, ],
                },
                {
                    path: "/ZXTFAchievements",
                    component: (resolve) => require(["@/views/Folder/index"], resolve),
                    redirect: "/ZXTFAchievements",
                    meta: {
                        title: "安全绩效考核",
                    },
                    children: [{
                            path: "/SelfList",
                            meta: { title: "自评列表" },
                            component: (resolve) =>
                                require(["@/views/Folder/ZXTFAchievements/SelfList"], resolve),
                        },
                        {
                            path: "/SelfDetail",
                            meta: { title: "自评信息" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/ZXTFAchievements/SelfDetail",
                                ], resolve),
                        },
                        {
                            path: "/SelfView",
                            meta: { title: "考核任务明细" },
                            component: (resolve) =>
                                require(["@/views/Folder/ZXTFAchievements/SelfView"], resolve),
                        },
                        {
                            path: "/OtherList",
                            meta: { title: "考评列表" },
                            component: (resolve) =>
                                require(["@/views/Folder/ZXTFAchievements/OtherList"], resolve),
                        },
                        {
                            path: "/OtherDetail",
                            meta: { title: "考评信息" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/ZXTFAchievements/OtherDetail",
                                ], resolve),
                        },
                        {
                            path: "/OtherView",
                            meta: { title: "考核任务明细" },
                            component: (resolve) =>
                                require(["@/views/Folder/ZXTFAchievements/OtherView"], resolve),
                        },
                    ],
                },
                {
                    path: "/PlanEmergencyFileManage",
                    component: (resolve) => require(["@/views/Folder/index"], resolve),
                    redirect: "/PlanEmergencyFileManage",
                    meta: {
                        title: "应急预案文件",
                    },
                    children: [{
                            path: "/PlanEmergencyFileManage",
                            meta: { title: "应急预案文件" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/PlanEmergencyFileManage/list",
                                ], resolve),
                        },
                        {
                            path: "/PlanEmergencyFileManageLog",
                            meta: { title: "修订历史" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/PlanEmergencyFileManage/fileManageLog",
                                ], resolve),
                        },
                        {
                            path: "/PlanEmergencyFileManageView",
                            meta: { title: "应急预案文件[详情]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/PlanEmergencyFileManage/fileManageView",
                                ], resolve),
                        },
                    ],
                },
                {
                    path: "/PlanEmergencyResourcePosition",
                    component: (resolve) => require(["@/views/Folder/index"], resolve),
                    redirect: "/PlanEmergencyResourcePosition",
                    meta: {
                        title: "应急物资管理",
                    },
                    children: [{
                            path: "/PlanEmergencyResourcePosition",
                            meta: { title: "应急物资管理" },

                            component: (resolve) =>
                                require([
                                    "@/views/Folder/PlanEmergencyResourcePosition/list",
                                ], resolve),
                        },
                        {
                            path: "/PlanEmergencyResourcePositionAdd",
                            meta: { title: "应急物资存储位置[新增]" },

                            component: (resolve) =>
                                require([
                                    "@/views/Folder/PlanEmergencyResourcePosition/detail",
                                ], resolve),
                        },
                        {
                            path: "/PlanEmergencyResourcePositionEdit",
                            meta: { title: "应急物资存储位置[编辑]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/PlanEmergencyResourcePosition/detail",
                                ], resolve),
                        },
                    ],
                },

                {
                    path: "/PlanEmergencyOrgTeam",
                    component: (resolve) => require(["@/views/Folder/index"], resolve),
                    redirect: "/PlanEmergencyOrgTeam",
                    meta: {
                        title: "应急响应团队管理",
                    },
                    children: [{
                            path: "/PlanEmergencyOrgTeam",
                            meta: { title: "应急响应团队管理" },
                            component: (resolve) =>
                                require(["@/views/Folder/PlanEmergencyOrgTeam/list"], resolve),
                        },
                        {
                            path: "/PlanEmergencyOrgTeamView",
                            meta: { title: "应急响应团队[详情]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/PlanEmergencyOrgTeam/orgTeamView",
                                ], resolve),
                        },
                        {
                            path: "/PlanEmergencyOrgTeamAdd",
                            meta: { title: "应急响应团队[新增]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/PlanEmergencyOrgTeam/detail",
                                ], resolve),
                        },
                        {
                            path: "/PlanEmergencyOrgTeamEdit",
                            meta: { title: "应急响应团队[编辑]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/PlanEmergencyOrgTeam/detail",
                                ], resolve),
                        },
                        {
                            path: "/PlanEmergencyOrgTeamMemberAdd",
                            meta: { title: "应急小组成员[新增]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/PlanEmergencyOrgTeam/memberDetail",
                                ], resolve),
                        },
                        {
                            path: "/PlanEmergencyOrgTeamMemberEdit",
                            meta: { title: "应急小组成员[编辑]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/PlanEmergencyOrgTeam/memberDetail",
                                ], resolve),
                        },
                        {
                            path: "/PlanEmergencyOrgTeamDisposalCardAdd",
                            meta: { title: "应急处置卡[新增]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/PlanEmergencyOrgTeam/disposalCardDetail",
                                ], resolve),
                        },
                        {
                            path: "/PlanEmergencyOrgTeamDisposalCardEdit",
                            meta: { title: "应急处置卡[编辑]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/PlanEmergencyOrgTeam/disposalCardDetail",
                                ], resolve),
                        },
                    ],
                },
                {
                    path: "/PlanSimpleDrillPlan",
                    component: (resolve) => require(["@/views/Folder/index"], resolve),
                    redirect: "/PlanSimpleDrillPlan",
                    meta: {
                        title: "应急演练计划",
                    },
                    children: [{
                            path: "/PlanSimpleDrillPlan",
                            meta: { title: "应急演练计划" },
                            component: (resolve) =>
                                require(["@/views/Folder/PlanSimpleDrillPlan/list"], resolve),
                        },
                        {
                            path: "/PlanSimpleDrillPlanView",
                            meta: { title: "应急演练计划[详情]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/PlanSimpleDrillPlan/drillPlanView",
                                ], resolve),
                        },
                        {
                            path: "/PlanSimpleDrillPlanImplementView",
                            meta: { title: "应急演练实施[详情]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/PlanSimpleDrillPlan/drillPlanView",
                                ], resolve),
                        },
                        {
                            path: "/PlanSimpleDrillPlanAdd",
                            meta: { title: "应急演练计划[新增]" },
                            component: (resolve) =>
                                require(["@/views/Folder/PlanSimpleDrillPlan/detail"], resolve),
                        },
                        {
                            path: "/PlanSimpleDrillPlanEdit",
                            meta: { title: "应急演练计划[编辑]" },
                            component: (resolve) =>
                                require(["@/views/Folder/PlanSimpleDrillPlan/detail"], resolve),
                        },
                        {
                            path: "/PlanSimpleDrillPlanApprovalHistory",
                            meta: { title: "应急演练计划[审批历史]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/PlanSimpleDrillPlan/ApprovalHistory",
                                ], resolve),
                        },
                        {
                            path: "/PlanSimpleDrillPlanImplementAdd",
                            meta: { title: "应急演练实施[新增]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/PlanSimpleDrillPlan/detailImplement",
                                ], resolve),
                        },
                        {
                            path: "/PlanSimpleDrillPlanImplementEdit",
                            meta: { title: "应急演练实施[编辑]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/PlanSimpleDrillPlan/detailImplement",
                                ], resolve),
                        },
                    ],
                },

                {
                    path: "/PlanEmergencyContactExternal",
                    component: (resolve) => require(["@/views/Folder/index"], resolve),
                    redirect: "/PlanEmergencyContactExternal",
                    meta: {
                        title: "应急通讯录",
                    },
                    children: [{
                            path: "/PlanEmergencyContactExternal",
                            meta: { title: "应急通讯录" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/PlanEmergencyContactExternal/list",
                                ], resolve),
                        },
                        {
                            path: "/PlanEmergencyContactExternalView",
                            meta: { title: "应急通讯录[详情]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/PlanEmergencyContactExternal/contactExternalView",
                                ], resolve),
                        },
                        {
                            path: "/PlanEmergencyContactExternalAdd",
                            meta: { title: "应急通讯录[新增]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/PlanEmergencyContactExternal/detail",
                                ], resolve),
                        },
                        {
                            path: "/PlanEmergencyContactExternalEdit",
                            meta: { title: "应急通讯录[编辑]" },
                            component: (resolve) =>
                                require([
                                    "@/views/Folder/PlanEmergencyContactExternal/detail",
                                ], resolve),
                        },
                    ],
                },
            ],
        },
        // 设备设施
        {
            path: "/Equipment",
            component: (resolve) => require(["@/views/equipment/index"], resolve),
            redirect: "/Equipment",
            meta: {
                title: "设备设施",
            },
            children: [{
                    path: "/Equipment",
                    meta: { title: "设备设施" },
                    component: (resolve) =>
                        require(["@/views/equipment/equipment/list"], resolve),
                },
                {
                    path: "Detail",
                    meta: { title: "设备详情" },
                    component: (resolve) =>
                        require(["@/views/equipment/equipment/detail"], resolve),
                },
                {
                    path: "QRCode",
                    meta: { title: "设备二维码" },
                    component: (resolve) =>
                        require(["@/views/base/components/QRCode"], resolve),
                },
                {
                    path: "Edit",
                    name: "EquipmentEdit",
                    meta: { title: "编辑设备信息" },
                    component: (resolve) =>
                        require(["@/views/equipment/equipment/edit"], resolve),
                },
                {
                    path: "LocationItem",
                    meta: { title: "选择部门" },
                    component: (resolve) =>
                        require(["@/views/equipment/equipment/LocationItem"], resolve),
                },
                {
                    path: "EquipmentItem",
                    meta: { title: "" },
                    component: (resolve) =>
                        require(["@/views/equipment/equipment/EquipmentItem"], resolve),
                },
                {
                    path: "editcheck",
                    meta: { title: "设备检验记录" },
                    component: (resolve) =>
                        require(["@/views/equipment/equipment/checkDetail"], resolve),
                },
                {
                    path: "safetyfile",
                    meta: { title: "设备安全附件" },
                    component: (resolve) =>
                        require(["@/views/equipment/equipment/fileDetail"], resolve),
                },
                {
                    path: "addfile",
                    meta: { title: "上传设备安全附件附件" },
                    component: (resolve) =>
                        require(["@/views/equipment/equipment/addFile"], resolve),
                },
                {
                    path: "addEquFile",
                    meta: { title: "新增设备安全附件" },
                    component: (resolve) =>
                        require(["@/views/equipment/equipment/addEquFile"], resolve),
                },
                {
                    path: "SafetyFileCheck",
                    meta: { title: "安全附件维护" },
                    component: (resolve) =>
                        require(["@/views/equipment/equipment/safetyFile"], resolve),
                },
                {
                    path: "SafetyEquipFileCheck",
                    meta: { title: "设备安全附件文档附件" },
                    component: (resolve) =>
                        require(["@/views/equipment/equipment/safetyEquipFile"], resolve),
                },
                {
                    path: "equipmentRiskUnit",
                    meta: { title: "设备检查表" },
                    component: (resolve) =>
                        require(["@/views/equipment/equipment/equipmentRiskUnit"], resolve),
                },
                {
                    path: "EquEquipmentTask",
                    meta: { title: "设备检查任务" },
                    component: (resolve) =>
                        require(["@/views/equipment/equipment/equEquipmentTask"], resolve),
                },
                {
                    path: "fileDetail",
                    meta: { title: "附件详情" },
                    component: (resolve) =>
                        require(["@/views/equipment/equipment/viewFileDetail"], resolve),
                },
            ],
        },
        // 危险化学品
        {
            path: "/Chemical",
            component: (resolve) => require(["@/views/chemical/index"], resolve),
            redirect: "/Chemical",
            meta: {
                title: "危险化学品",
            },
            children: [{
                    path: "/Chemical",

                    meta: { title: "危险化学品" },
                    component: (resolve) =>
                        require(["@/views/chemical/chemical/list"], resolve),
                },
                {
                    path: "Detail",
                    meta: { title: "化学品信息" },
                    component: (resolve) =>
                        require(["@/views/chemical/chemical/detail"], resolve),
                },
                {
                    path: "QRCode",
                    meta: { title: "化学品二维码" },
                    component: (resolve) =>
                        require(["@/views/chemical/chemical/qrCode"], resolve),
                },
                {
                    path: "Edit",
                    name: "edit-chemical",
                    // meta: { title: "编辑危险化学品", keepAlive: true },
                    component: (resolve) =>
                        require(["@/views/chemical/chemical/edit"], resolve),
                },

                {
                    path: "ChemicalItem",
                    meta: { title: "" },
                    component: (resolve) =>
                        require(["@/views/chemical/chemical/ChemicalItem"], resolve),
                },
                {
                    path: "MannerItem",
                    meta: { title: "" },
                    component: (resolve) =>
                        require(["@/views/chemical/chemical/MannerItem"], resolve),
                },
            ],
        },
        // 证书中心
        {
            path: "/Credential",
            component: (resolve) => require(["@/views/cert/index"], resolve),
            redirect: "/Credential",
            meta: {
                title: "证书中心",
            },
            children: [{
                    path: "/Credential",

                    meta: { title: "证书中心" },
                    component: (resolve) =>
                        require(["@/views/cert/Credential/List"], resolve),
                },
                {
                    path: "FileList",

                    meta: { title: "从附件库选择" },
                    component: (resolve) =>
                        require(["@/views/cert/Credential/FileList"], resolve),
                },
                {
                    path: "Detail",
                    meta: { title: "证书详情" },
                    component: (resolve) =>
                        require(["@/views/cert/Credential/Detail"], resolve),
                },
                {
                    path: "ReviewList",
                    meta: { title: "证书复审记录" },
                    component: (resolve) =>
                        require(["@/views/cert/Credential/ReviewList"], resolve),
                },
                {
                    path: "Edit",
                    name: "CertEdit",
                    meta: { title: "编辑员工证书" },
                    component: (resolve) =>
                        require(["@/views/cert/Credential/Edit"], resolve),
                },
                {
                    path: "Enclosure",
                    name: "Enclosure",
                    meta: { title: "附件详情", scale: "true" },
                    component: (resolve) =>
                        require(["@/views/cert/Credential/Enclosure"], resolve),
                },
                {
                    path: "CertList",
                    meta: { title: "证书" },
                    component: (resolve) =>
                        require(["@/views/cert/Credential/CertList"], resolve),
                },
                // {
                //   path: "PeopleList",
                //   meta: { title: "员工" },
                //   component: (resolve) => require(['@/views/cert/Credential/PersonListItem'], resolve),
                // },
                {
                    path: "CertPeopleList",
                    meta: { title: "证书管理员" },
                    component: (resolve) =>
                        require(["@/views/cert/Credential/CertPersonListItem"], resolve),
                },
            ],
        },
        //教育培训
        {
            path: "/Train",
            component: (resolve) => require(["@/views/train/index"], resolve),
            redirect: "/Train",
            meta: {
                title: "教育培训",
            },
            children: [{
                    path: "/Train",

                    meta: { title: "教育培训" },
                    component: (resolve) =>
                        require(["@/views/train/components/List"], resolve),
                },
                {
                    path: "/TrainingDetail",
                    meta: { title: "培训详情" },
                    component: (resolve) =>
                        require(["@/views/train/components/TrainingDetail"], resolve),
                },
                {
                    path: "/TrainingEntrustedDetail",
                    meta: { title: "培训详情" },
                    component: (resolve) =>
                        require(["@/views/train/components/TrainEntrustedDetail"], resolve),
                },
                {
                    path: "Courseware",

                    meta: { title: "课件中心" },
                    component: (resolve) =>
                        require(["@/views/train/courseware/list"], resolve),
                },
                {
                    path: "CourseDetail",
                    meta: { title: "课程详情" },
                    component: (resolve) =>
                        require(["@/views/train/courseware/courseDetail"], resolve),
                },
                {
                    path: "WareDetail",
                    meta: { title: "课件详情" },
                    component: (resolve) =>
                        require(["@/views/train/courseware/wareDetail"], resolve),
                },
                {
                    path: "DocDetail",
                    meta: { title: "课件学习", scale: "true" },
                    component: (resolve) =>
                        require(["@/views/train/courseware/docDetail"], resolve),
                },
                {
                    path: "Detail",
                    meta: { title: "课件学习" },
                    component: (resolve) =>
                        require(["@/views/train/courseware/detail"], resolve),
                },
                {
                    path: "CompanyDir",
                    meta: { title: "选择知识目录" },
                    component: (resolve) =>
                        require(["@/views/train/courseware/companyDir"], resolve),
                },

                {
                    path: "Trainingplan",
                    meta: { title: "培训计划" },
                    component: (resolve) =>
                        require(["@/views/train/trainingplan/list"], resolve),
                },
                {
                    path: "/TrainingMyStudy",
                    meta: { title: "培训参与" },
                    component: (resolve) =>
                        require(["@/views/train/trainingplan/myStudy"], resolve),
                },
                {
                    path: "Examplan",
                    meta: { title: "考试计划清单" },
                    component: (resolve) =>
                        require(["@/views/train/examplan/list"], resolve),
                },
                {
                    path: "ExamDetail",
                    meta: { title: "考试详情" },
                    component: (resolve) =>
                        require(["@/views/train/examplan/examDetail"], resolve),
                },
                {
                    path: "ExamPerson",
                    meta: { title: "考试计划已选用户" },
                    component: (resolve) =>
                        require(["@/views/train/examplan/examPerson"], resolve),
                },
                {
                    path: "TrainingplanDetail",
                    meta: { title: "培训计划详情" },
                    component: (resolve) =>
                        require(["@/views/train/trainingplan/trainingplanDetail"], resolve),
                },
                {
                    path: "TrainingplanDetailCertPreview",
                    meta: { title: "通行证查看" },
                    component: (resolve) =>
                        require(["@/views/train/trainingplan/certPreview"], resolve),
                },
                {
                    path: "ExamFollow",
                    meta: { title: "考试跟踪" },
                    component: (resolve) =>
                        require(["@/views/train/examplan/examFollow"], resolve),
                },
                {
                    path: "LearningHistory",
                    meta: { title: "学习历史" },
                    component: (resolve) =>
                        require(["@/views/train/learninghistory/list"], resolve),
                },
                {
                    path: "ExExam",
                    meta: { title: "我的考试" },
                    component: (resolve) =>
                        require(["@/views/train/exexam/list"], resolve),
                },
                {
                    path: "ExExamExplain",
                    meta: { title: "考试说明" },
                    component: (resolve) =>
                        require(["@/views/train/exexam/exExamExplain"], resolve),
                },
                {
                    path: "ExamResult",
                    meta: { title: "考试结果" },
                    component: (resolve) =>
                        require(["@/views/train/exexam/examResult"], resolve),
                },
                {
                    path: "ExamResultDetail",
                    meta: { title: "考试结果" },
                    component: (resolve) =>
                        require(["@/views/train/exexam/examResultDetail"], resolve),
                },
                {
                    path: "AddTrainingPlan",
                    name: "AddTrainingPlan",
                    meta: { title: "创建培训计划", keepAlive: true },
                    component: (resolve) =>
                        require(["@/views/train/addtrainingplan/add"], resolve),
                },
                {
                    path: "setPlanExam",
                    name: "setPlanExam",
                    meta: { title: "设置培训考试", keepAlive: true },
                    component: (resolve) =>
                        require(["@/views/train/addtrainingplan/setPlanExam"], resolve),
                },
                {
                    path: "TrainingPlanList",
                    meta: { title: "培训计划清单" },
                    component: (resolve) =>
                        require(["@/views/train/trainingplanlist/list"], resolve),
                },
                {
                    path: "TrainingPlanListFollow",
                    meta: { title: "培训跟踪" },
                    component: (resolve) =>
                        require([
                            "@/views/train/trainingplanlist/trainingPlanListFollow",
                        ], resolve),
                },

                {
                    path: "PlanCourse",
                    name: "PlanCourse",
                    meta: { title: "培训计划已选课件" },
                    component: (resolve) =>
                        require(["@/views/train/trainingplanlist/planCourse"], resolve),
                },
                {
                    path: "PlanPerson",
                    name: "PlanPerson",
                    meta: { title: "培训计划已选用户" },
                    component: (resolve) =>
                        require(["@/views/train/trainingplanlist/planPerson"], resolve),
                },
                {
                    path: "TrainingPlanApprove",
                    meta: { title: "审批历史" },
                    component: (resolve) =>
                        require([
                            "@/views/train/trainingplanlist/trainingPlanApprove",
                        ], resolve),
                },
                {
                    path: "StartExam",
                    meta: { title: "开始考试" },
                    component: (resolve) =>
                        require(["@/views/train/exexam/startExam"], resolve),
                },
                {
                    path: "ExamSign",
                    meta: { title: "考试[签名]" },
                    component: (resolve) =>
                        require(["@/views/train/exexam/examSign"], resolve),
                },
                {
                    path: "MustStudy",
                    meta: { title: "岗位必学" },
                    component: (resolve) =>
                        require(["@/views/train/muststudy/List"], resolve),
                },
                {
                    path: "TrainingPlanListDetail",
                    meta: { title: "培训计划详情" },
                    component: (resolve) =>
                        require([
                            "@/views/train/trainingplanlist/trainingPlanListDetail",
                        ], resolve),
                },
                {
                    path: "ExamReviewList",
                    meta: { title: "试卷批阅" },
                    component: (resolve) =>
                        require(["@/views/train/examreview/list"], resolve),
                },
                {
                    path: "ExamReviewDetail",
                    meta: { title: "试卷批阅" },
                    component: (resolve) =>
                        require(["@/views/train/examreview/detail"], resolve),
                },
                {
                    path: "MyCollection",
                    meta: { title: "我的收藏" },
                    component: (resolve) =>
                        require(["@/views/train/mycollection/list"], resolve),
                },
                {
                    path: "PracticeAssessment",
                    meta: { title: "实践考核" },
                    component: (resolve) =>
                        require(["@/views/train/practice/list"], resolve),
                },
                {
                    path: "AddExam",
                    name: "AddExam",
                    meta: { title: "创建考试" },
                    component: (resolve) =>
                        require(["@/views/train/addexam/addExam"], resolve),
                },
                {
                    path: "/TrainEntrustedPlanView",
                    component: (resolve) =>
                        require(["@/views/train/TrainEntrustedPlan/view"], resolve),
                    meta: {
                        title: "培训计划详情",
                    },
                },
            ],
        },
        {
            path: "/Danger",
            component: (resolve) => require(["@/views/danger/index"], resolve),
            redirect: "/Danger",
            meta: {
                title: "隐患排查",
            },
            children: [{
                    path: "/Danger",

                    meta: { title: "隐患排查" },
                    component: (resolve) => require(["@/views/danger/main"], resolve),
                },
                {
                    path: "DangerTemplateList",

                    meta: { title: "检查表" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerTemplate/list"], resolve),
                },
                {
                    path: "/Template",
                    
                    meta: { title: "检查表"},

                    component: (resolve) =>
                        require(["@/views/danger/dangerTemplate/list2"], resolve),
                },
                {
                    path: "checkVerifyuserList",
                    meta: { title: "验收人管理" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTask/checkVerifyuserList",
                        ], resolve),
                },
                {
                    path: "DangerTemplateDetail",
                    meta: { title: "检查表详情" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetail/templateDetailWindow",
                        ], resolve),
                },
                {
                    path: "DangerTemplateDetailJG",
                    meta: { title: "检查表详情" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetail/templateDetailWindow_JG",
                        ], resolve),
                },
                {
                    path: "/Lawgist",
                    name: "Classifys",
                    meta: { title: "检查依据" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetail/windowClassifys",
                        ], resolve),
                },
                {
                    path: "Classifys",
             
                    meta: { title: "检查依据" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetail/windowClassifys",
                        ], resolve),
                },
                {
                    path: "ClassifysDetail",
                    name: "ClassifysDetail",
                    meta: { title: "检查依据详情" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetail/classifysDetail",
                        ], resolve),
                },
                {
                    path: "ClassifysSearch",
                    name: "ClassifysSearch",
                    meta: { title: "检查依据搜索" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetail/ClassifysSearch",
                        ], resolve),
                },
                {
                    path: "DangerCheckTaskDetailEdit",
                    name: "DangerCheckTaskDetailEdit",
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckTaskDetail/detail"], resolve),
                },
                {
                    path: "DangerCheckTaskDetailEdit_JG",
                    name: "DangerCheckTaskDetailEdit_JG",
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckTaskDetail/detail_JG"], resolve),
                },
                {
                    path: "/DangerVerify",
                    meta: { title: "验收检查任务" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerAcceptanceTask/list",
                        ], resolve),
                },
                {
                    path: "/JGDangerVerify",
                    meta: { title: "隐患任务" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerAcceptanceTask/list_JG",
                        ], resolve),
                },
                {
                    path: "DangerVerifyHiddent",
                    meta: { title: "验收隐患" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerAcceptanceTask/dangerhiddentverify",
                        ], resolve),
                },
                {
                    path: "DangerAcceptanceTaskTemporary",
                    meta: { title: "发起检查" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerAcceptanceTask/Temporarytask",
                        ], resolve),
                },
                {
                    path: "/StartTask",
                    meta: { title: "发起检查" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerAcceptanceTask/Temporarytask_JG",
                        ], resolve),
                },
                {
                    path: "MyCheckListSet",
                    name: "MyCheckListSet",
                    meta: { title: "检查表设置", keepAlive: true },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckPlan/MyCheckListSet"], resolve),
                },
                {
                    path: "InspectionWay",
                    name: "InspectionWay",
                    meta: { title: "选择巡检路线" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerPatrolRoute/inspectionWay",
                        ], resolve),
                },
                {
                    path: "/PLANLIST",
                    meta: { title: "检查计划清单" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckPlan/list"], resolve),
                },
                {
                    path: "checkplan",
                    meta: { title: "检查计划清单" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckPlan/list"], resolve),
                },
                {
                    path: "CheckPlanDetail",
                    meta: { title: "检查计划详情" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckPlan/detail"], resolve),
                },
                {
                    path: "CheckPlanEdit",
                    name: "CheckPlanEdit",
                    meta: { title: "编辑检查计划" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckPlan/edit"], resolve),
                },
                {
                    path: "/StartPlan",
           
                    meta: { title: "编辑检查计划" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckPlan/edit_JG"], resolve),
                },
                {
                    path: "CheckPlanFollowDetail",
                    meta: { title: "检查任务跟踪详情" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckPlan/followDetail"], resolve),
                },
                {
                    path: "CheckPlanHistoryList",
                    meta: { title: "任务检查记录" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckPlan/historyList"], resolve),
                },
                {
                    path: "RecordList",
                    meta: { title: "检查记录" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckPlan/RecordList"], resolve),
                },
                {
                    path: "DangerCheckPlanApprove",
                    meta: { title: "审批历史" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckPlan/approve"], resolve),
                },
                {
                    path: "DangerCheckPlanFollow",
                    meta: { title: "检查任务跟踪" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckPlan/followList"], resolve),
                },
                {
                    path: "DangerCheckPlanFollow_JG",
                    meta: { title: "检查任务跟踪" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckPlan/followList_JG"], resolve),
                },
                {
                    path: "DangerCheckTaskTaskList",
                    meta: { title: "我的检查任务" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckTask/list"], resolve),
                },
                        {
                    path: "/JGDangerPlanTask",
                    meta: { title: "我的检查任务" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckTask/list"], resolve),
                },
                {
                    path: "DangerCheckTaskEdit",
                    meta: { title: "检查任务详情" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckTask/detail"], resolve),
                },
                {
                    path: "UserListManager",
                    meta: { title: "检查人检查情况" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTask/UserListManger",
                        ], resolve),
                },
                {
                    path: "DangerCheckTaskTemplateList",
                    meta: { title: "任务检查表" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTask/checkTaskTemplateList",
                        ], resolve),
                },
                {
                    path: "DangerCheckTaskFileList",
                    meta: { title: "检查现场照片" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckTask/MyTaskFileList"], resolve),
                },
                {
                    path: "DangerTemplateCheckResult",
                    meta: { title: "检查表检查结果" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetail/templateCheckResult",
                        ], resolve),
                },
                {
                    path: "DangerCheckTaskDetailList",
                    meta: { title: "我的检查历史" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckTaskDetail/list"], resolve),
                },
                {
                    path: "DangerCheckTaskView",
                    meta: { title: "检查任务详情" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckTask/view"], resolve),
                },
                {
                    path: "DangerCheckPlanView",
                    meta: { title: "检查计划详情" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckPlan/view"], resolve),
                },
                {
                    path: "DangerCheckDetailView",
                    name: "DangerCheckDetailView",
                    meta: { title: "隐患详情" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckTaskDetail/view"], resolve),
                },
                {
                    path: "MyMeasuresList",
                    meta: { title: "待我制定措施" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetail/listFormulated",
                        ], resolve),
                },
                {
                    path: "MyMeasuresToDetail",
                    meta: { title: "待制定措施隐患详情" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetail/windowFormulate",
                        ], resolve),
                },
                // {
                //   path: "MyMeasuresDetail",
                //   meta: { title: "已制定措施隐患详情" },
                //   component: (resolve) => require(['@/views/danger/dangerCheckTaskDetail/View'], resolve),
                // },
                {
                    path: "MyCorrectiveList",
                    meta: { title: "待我整改的隐患" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetail/listCorrectived",
                        ], resolve),
                },
                {
                    path: "MyCorrectivedDetail",
                    meta: { title: "待整改隐患详情" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetail/windowCorrective",
                        ], resolve),
                },
                // {
                //   path: "MyHiddenDangerDetail",
                //   meta: { title: "待整改隐患详情" },
                //   component: (resolve) => require(['@/views/danger/myhiddendanger/Detail'], resolve),
                // },
                {
                    path: "JGFormulatedList",
                    meta: { title: "制定监管隐患措施" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetailJG/listFormulated",
                        ], resolve),
                },
                {
                    path: "/JGDangerFormulate",
                    meta: { title: "制定监管隐患措施" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetailJG/listFormulated",
                        ], resolve),
                },
                {
                    path: "JGFormulatedList2",
                    meta: { title: "监管隐患整改" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetailJG/listFormulated2",
                        ], resolve),
                },
                {
                    path: "JGFormulatedList3",
                    meta: { title: "待我整改" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetailJG/listFormulated3",
                        ], resolve),
                },
                {
                    path: "JGFormulatedDetail",
                    name: "JGFormulatedDetail",
                    meta: { title: "待制定措施监管隐患详情", keepAlive: true },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetailJG/WindowFormulate",
                        ], resolve),
                },
                {
                    path: "FormulatedDetail",
                    name: "FormulatedDetail",
                    meta: { title: "待制定措施监管隐患详情", keepAlive: true },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetail/windowFormulate2",
                        ], resolve),
                },
                {
                    path: "DangerCheckTaskTaskList",
                    meta: { title: "公司检查计划" },
                    component: (resolve) =>
                        require(["@/views/Otherdanger/OtherdangerCheckTask/list"], resolve),
                },
                // {
                //   path: "SuperMeasuresDetail",
                //   meta: { title: "已制定措施监管隐患详情" },
                //   component: (resolve) => require(['@/views/danger/dangerCheckTaskDetail/View'], resolve),
                // },

                {
                    path: "JGFCorrectivedList",
                    meta: { title: "整改监管隐患" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetailJG/listCorrectived",
                        ], resolve),
                },
                {
                    path: "/JGDangerCorrective",
                    meta: { title: "整改监管隐患" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetailJG/listCorrectived",
                        ], resolve),
                },
                {
                    path: "JGWindowCorrectiveDetail",
                    meta: { title: "待整改监管隐患详情" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetailJG/WindowCorrective",
                        ], resolve),
                },
                {
                    path: "DangerCheckTaskConfirmList",
                    meta: { title: "隐患确认" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetail/listConfirm",
                        ], resolve),
                },
                {
                    path: "Department",
                    name: "Department",
                    meta: { title: "整改部门" },
                    component: (resolve) =>
                        require(["@/views/userOrg/Department"], resolve),
                },
                {
                    path: "DangerCheckDetailBeAssignedList",
                    meta: { title: "分配整改任务" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetail/listBeAssigned",
                        ], resolve),
                },
                {
                    path: "DangerCheckDetailAssignDetail",
                    name: "DangerCheckDetailAssignDetail",
                    meta: { title: "待指派隐患详情" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetail/windowAssignDetail",
                        ], resolve),
                },
                {
                    path: "DangerCheckTaskDetailVerifyList",
                    meta: { title: "验收隐患" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetail/listVerify",
                        ], resolve),
                },
                {
                    path: "DangerCheckTaskDetailVerifyDetail",
                    meta: { title: "待验收隐患详情" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetail/windowVerifyDetail",
                        ], resolve),
                },
                {
                    path: "DangerCheckTaskDetailVerifyDetail_JG",
                    meta: { title: "待验收隐患详情" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetail/windowVerifyDetail_JG",
                        ], resolve),
                },
                {
                    path: "CheckReport",
                    meta: { title: "检查报告" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckreport/list"], resolve),
                },

                // {
                //     path: "/DangerReport",
                //     meta: { title: "检查报告" },
                //     component: (resolve) =>
                //         require(["@/views/danger/dangerCheckreport/list"], resolve),
                // },
                {
                    path: "/DangerReport",
                    meta: { title: "检查报告" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckreport/list2"], resolve),
                },
                {
                    path: "/HiddenReport",
                    meta: { title: "检查报告" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckreport/list2"], resolve),
                },
                {
                    path: "HistoryReport",
                    meta: { title: "报告历史" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckreport/History"], resolve),
                },
                {
                    path: "CheckReportDetail",
                    name: "CheckReportDetail",
                    meta: { title: "报告详情", scale: "true" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckreport/checkReportDetail",
                        ], resolve),
                },
                {
                    path: "CheckReportDetail2",
                    name: "CheckReportDetail2",
                    meta: { title: "文件详情", scale: "true" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckreport/checkReportDetail",
                        ], resolve),
                },
                {
                    path: "CheckReportDetail3",
                    name: "CheckReportDetail3",
                    meta: { title: "帮助手册", scale: "true" },
                    component: () =>
                        import ("@/views/danger/dangerCheckreport/checkReportDetail"),
                },
                {
                    path: "TaskReport",
                    meta: { title: "生成检查报告（按任务）" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckreport/taskReport"], resolve),
                },
                {
                    path: "HiddenDangerReport",
                    meta: { title: "生成检查报告（按隐患）" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckreport/hiddenDangerReport",
                        ], resolve),
                },
                {
                    path: "CorrectiveReport",
                    meta: { title: "生成整改报告（按任务）" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckreport/taskReport"], resolve),
                },
                {
                    path: "CorrectiveHiddenDanger",
                    meta: { title: "生成整改报告（按隐患）" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckreport/hiddenDangerReport",
                        ], resolve),
                },
                {
                    path: "Reportdetail",
                    name: "Reportdetail",
                    meta: { title: "生成报告" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckreport/reportdetail"], resolve),
                },
                {
                    path: "/HiddenDanger",
                    meta: { title: "我提报的隐患" },
                    component: (resolve) =>
                        require([
                            "@/views/danger/dangerCheckTaskDetail/listUpload",
                        ], resolve),
                },
                {
                    path: "HiddenDangerUpload",
                    meta: { title: "隐患提报" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckTaskDetail/detail"], resolve),
                },
                {
                    path:"/JGDangerSubmitTask",
                    meta: { title: "提交监查任务" },
                    component: (resolve) =>
                        require(["@/views/danger/dangerCheckTaskDetail/listtwo"], resolve),
                },
    
            ],
        },
        //生益质量排查
        {
            path: "/SytechDanger",
            component: (resolve) => require(["@/views/sytech/index"], resolve),
            redirect: "/Danger",
            meta: {
                title: "质量隐患排查",
            },
            children: [{
                    path: "/SytechDanger",
                    meta: { title: "质量隐患排查" },
                    component: (resolve) => require(["@/views/sytech/main"], resolve),
                },
                {
                    path: "/SytechDanger/DangerCheckTemplateList",
                    meta: { title: "质量检查表" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckTemplate/WindowTemplateList",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/DangerCheckTemplateDetail",
                    meta: { title: "质量检查表详情" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckTaskDetail/DangerTemplateCheckDetail",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/DangerCheckTaskDetailEdit",
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckTaskDetail/Detail",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/ChooseMyCheckList",
                    meta: { title: "选择检查表" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckPlan/ChooseMyCheckList",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/ChooseDangerArea",
                    meta: { title: "选择检查区域" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckPlan/ChooseDangerArea",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/MyCheckListSet",
                    meta: { title: "检查表设置", keepAlive: true },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckPlan/MyCheckListSet",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/CheckPlan",
                    meta: { title: "质量检查计划清单" },
                    component: (resolve) =>
                        require(["@/views/sytech/sytechDangerCheckPlan/List"], resolve),
                },
                {
                    path: "/SytechDanger/CheckPlanDetail",
                    meta: { title: "质量检查计划详情" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckPlan/CheckPlanDetail",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/CheckPlanEdit",
                    meta: { title: "编辑质量检查计划" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckPlan/CheckPlanEdit",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/CheckPlanFollowDetail",
                    meta: { title: "质量检查任务跟踪详情" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckPlan/CheckPlanFollowDetail",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/CheckHistoryList",
                    meta: { title: "质量任务检查记录" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckTaskDetail/CheckHistoryList",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/DangerCheckPlanApprove",
                    meta: { title: "审批历史" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckPlan/CheckPlanApprove",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/DangerCheckPlanFollow",
                    meta: { title: "质量检查任务跟踪" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckPlan/CheckPlanFollow",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/DangerCheckTaskTaskList",
                    meta: { title: "我的质量检查任务" },
                    component: (resolve) =>
                        require(["@/views/sytech/sytechDangerCheckTask/List"], resolve),
                },
                {
                    path: "/SytechDanger/DangerCheckTaskEdit",
                    meta: { title: "质量检查任务详情" },
                    component: (resolve) =>
                        require(["@/views/sytech/sytechDangerCheckTask/Detail"], resolve),
                },
                {
                    path: "/SytechDanger/DangerCheckTaskTemplateList",
                    meta: { title: "质量任务检查表" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckTask/CheckTaskTemplateList",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/DangerCheckTaskFileList",
                    meta: { title: "质量检查现场照片" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckTask/MyTaskFileList",
                        ], resolve),
                },

                {
                    path: "/SytechDanger/DangerTemplateCheckResult",
                    meta: { title: "质量检查表检查结果" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckTaskDetail/DangerTemplateCheckResult",
                        ], resolve),
                },

                {
                    path: "/SytechDanger/DangerCheckTaskDetailList",
                    meta: { title: "我的质量检查历史" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckTaskDetail/List",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/DangerCheckTaskView",
                    meta: { title: "质量检查任务详情" },
                    component: (resolve) =>
                        require(["@/views/sytech/sytechDangerCheckTask/View"], resolve),
                },
                {
                    path: "/SytechDanger/DangerCheckPlanView",
                    meta: { title: "质量检查计划详情" },
                    component: (resolve) =>
                        require(["@/views/sytech/sytechDangerCheckPlan/View"], resolve),
                },
                {
                    path: "/SytechDanger/DangerCheckDetailView",
                    meta: { title: "质量隐患详情" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckTaskDetail/View",
                        ], resolve),
                },

                {
                    path: "/SytechDanger/MyMeasuresList",
                    meta: { title: "待我制定措施" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckTaskDetail/ListFormulated",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/MyMeasuresToDetail",
                    meta: { title: "待制定措施质量隐患详情" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckTaskDetail/WindowFormulate",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/MyCorrectiveList",
                    meta: { title: "待我整改的质量隐患" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckTaskDetail/ListCorrectived",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/MyCorrectivedDetail",
                    meta: { title: "待整改质量隐患详情" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckTaskDetail/WindowCorrective",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/DangerCheckTaskDetailApprovalHistory",
                    meta: { title: "审批历史" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckTaskDetail/ApprovalHistory",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/DangerCheckTaskConfirmList",
                    meta: { title: "质量隐患确认" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckTaskDetail/ListConfirm",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/HiddenDangerArea",
                    meta: { title: "选择质量隐患区域" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckTaskDetail/HiddenDangerArea",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/Department",
                    meta: { title: "整改部门" },
                    component: (resolve) =>
                        require(["@/views/userOrg/Department"], resolve),
                },
                {
                    path: "/SytechDanger/DangerCheckDetailBeAssignedList",
                    meta: { title: "分配整改任务" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckTaskDetail/ListBeAssigned",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/DangerCheckDetailAssignDetail",
                    meta: { title: "待指派质量隐患详情" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckTaskDetail/WindowAssignDetail",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/DangerCheckTaskDetailVerifyList",
                    meta: { title: "验收质量隐患" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckTaskDetail/ListVerify",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/DangerCheckTaskDetailVerifyDetail",
                    meta: { title: "待验收质量隐患详情" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckTaskDetail/WindowVerifyDetail",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/CheckReport",
                    meta: { title: "质量检查报告" },
                    component: (resolve) =>
                        require(["@/views/sytech/sytechDangerCheckreport/List"], resolve),
                },
                {
                    path: "/SytechDanger/CheckReportDetail",
                    meta: { title: "质量报告详情", scale: "true" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckreport/CheckReportDetail",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/CheckReportDetail2",
                    meta: { title: "文件详情", scale: "true" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckreport/CheckReportDetail",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/CheckReportDetail3",
                    meta: { title: "帮助手册", scale: "true" },
                    component: () =>
                        import ("@/views/sytech/sytechDangerCheckreport/CheckReportDetail"),
                },
                {
                    path: "/SytechDanger/TaskReport",
                    meta: { title: "生成质量检查报告（按任务）" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckreport/TaskReport",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/HiddenDangerReport",
                    meta: { title: "生成质量检查报告（按隐患）" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckreport/HiddenDangerReport",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/CorrectiveReport",
                    meta: { title: "生成质量整改报告（按任务）" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckreport/TaskReport",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/CorrectiveHiddenDanger",
                    meta: { title: "生成质量整改报告（按隐患）" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckreport/HiddenDangerReport",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/TaskReportDetail",
                    meta: { title: "质量检查任务详情" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckreport/TaskReportDetail",
                        ], resolve),
                },
                {
                    path: "/SytechDanger/Reportdetail",
                    meta: { title: "生成质量报告" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechDangerCheckreport/Reportdetail",
                        ], resolve),
                },
                {
                    path: "/SytechQualityStructureAnalysis/View",
                    meta: { title: "结构分析详情" },
                    component: (resolve) =>
                        require([
                            "@/views/sytech/sytechQualityStructureAnalysis/view",
                        ], resolve),
                },
                {
                    path: "/SytechQualityStructureAnalysis/QRCode",
                    meta: { title: "结构分析二维码" },
                    component: (resolve) =>
                        require(["@/views/base/components/QRCode"], resolve),
                },
            ],
        },
        {
            path: "*",
            component: (resolve) => require(["@/components/NotFound"], resolve),
        },
        // 附件
        {
            path: "/Attach",
            component: (resolve) => require(["@/views/attach/attachDetail"], resolve),
            redirect: "/Attach",
            meta: {
                title: "附件",
            },
            children: [{
                path: "AatachDetail",
                meta: { title: "附件详情", scale: "true" },
                component: (resolve) =>
                    require(["@/views/attach/attachDetail"], resolve),
            }, ],
        },
        {
            path: "/User",
            component: (resolve) => require(["@/views/users/index"], resolve),
            meta: {
                title: "人员管理",
            },
            children: [{
                    path: "/UserInfo",
                    meta: { title: "人员列表" },
                    component: (resolve) => require(["@/views/users/List"], resolve),
                },
                {
                    path: "/UserinfoAdd",
                    meta: { title: "员工新增" },
                    component: (resolve) =>
                        require(["@/views/users/UserinfoAdd"], resolve),
                },
                {
                    path: "/UserDetail",
                    meta: { title: "员工详情" },
                    component: (resolve) => require(["@/views/users/Detail"], resolve),
                },
                {
                    path: "/UserinfoGenerateAccount",
                    meta: { title: "生成登录账号" },
                    component: (resolve) =>
                        require(["@/views/users/UserinfoGenerateAccount"], resolve),
                },
            ],
        },
        //施工方管理
        {
            path: "/ConstructSafe",
            component: (resolve) => require(["@/views/constructSafe/index"], resolve),
            redirect: "/ConstructSafeCert",
            meta: {
                title: "施工方管理",
            },
            children: [{
                    path: "ConstructSafeCert",
                    component: (resolve) =>
                        require(["@/views/constructSafe/index"], resolve),
                    redirect: "/ConstructSafeCertList",
                    meta: {
                        title: "施工人员证书管理",
                    },
                    children: [{
                            path: "/ConstructSafeCertList",
                            meta: { title: "我的证书" },
                            component: (resolve) =>
                                require([
                                    "@/views/constructSafe/ConstructSafeCert/List",
                                ], resolve),
                        },
                        {
                            path: "/ConstructSafeCertDetail",
                            meta: { title: "证书编辑" },
                            component: (resolve) =>
                                require([
                                    "@/views/constructSafe/ConstructSafeCert/Detail",
                                ], resolve),
                        },
                        {
                            path: "/ConstructSafeCertView",
                            meta: { title: "证书详情" },
                            component: (resolve) =>
                                require([
                                    "@/views/constructSafe/ConstructSafeCert/View",
                                ], resolve),
                        },
                    ],
                },
                {
                    path: "ConstructSafeProject",
                    component: (resolve) =>
                        require(["@/views/constructSafe/index"], resolve),
                    meta: {
                        title: "施工项目管理",
                    },
                    children: [{
                            path: "/ConstructSafeProjectList",
                            meta: { title: "施工项目" },
                            component: (resolve) =>
                                require([
                                    "@/views/constructSafe/ConstructSafeProject/List",
                                ], resolve),
                        },
                        {
                            path: "/ConstructSafeProjectDetail",
                            meta: { title: "施工项目编辑" },
                            component: (resolve) =>
                                require([
                                    "@/views/constructSafe/ConstructSafeProject/Detail",
                                ], resolve),
                        },
                        {
                            path: "/ConstructSafeProjectView",
                            meta: { title: "施工项目详情" },
                            component: (resolve) =>
                                require([
                                    "@/views/constructSafe/ConstructSafeProject/View",
                                ], resolve),
                        },
                        {
                            path: "ConstructSafeProjectUser",
                            meta: { title: "施工人员出入场" },
                            component: (resolve) =>
                                require([
                                    "@/views/constructSafe/ConstructSafeProject/User",
                                ], resolve),
                        },
                    ],
                },
                {
                    path: "ConstructSafeProjectUserEntrance",
                    component: (resolve) =>
                        require(["@/views/constructSafe/index"], resolve),
                    meta: {
                        title: "施工人员进出场记录",
                    },
                    children: [{
                        path: "ConstructSafeProjectUserEntranceList",
                        meta: { title: "施工人员进出场记录" },
                        component: (resolve) =>
                            require([
                                "@/views/constructSafe/ConstructSafeProjectUserEntrance/List",
                            ], resolve),
                    }, ],
                },
            ],
        },
        //预案
        {
            path: "/Plan",
            component: (resolve) => require(["@/views/Plan/index"], resolve),
            meta: {
                title: "应急管理",
            },
            children: [{
                    path: "PlanSiteDisposalPlanView",
                    meta: { title: "现场处置方案详情" },
                    component: (resolve) =>
                        require(["@/views/Plan/PlanSiteDisposalPlan/View"], resolve),
                },
                {
                    path: "/PlanEmergencyResourceCheck",
                    meta: { title: "应急物资点检" },
                    component: (resolve) =>
                        require(["@/views/Plan/PlanEmergencyResourceCheck/check"], resolve),
                },
                {
                    path: "/PlanEmergencyResourceCheckDetail",
                    meta: { title: "点检记录详情" },
                    component: (resolve) =>
                        require([
                            "@/views/Plan/PlanEmergencyResourceCheck/detail",
                        ], resolve),
                },
            ],
        },
        //广西
        {
            path: "/GX",
            component: (resolve) => require(["@/views/GX/index"], resolve),
            meta: {
                title: "广西",
            },
            children: [{
                    path: "/GXNonResponsibilityEmergency",
                    component: (resolve) =>
                        require(["@/views/GX/GxNonResponsibilityEmergency/List"], resolve),
                    meta: {
                        title: "非责任突发事件",
                    },
                },
                {
                    path: "/GXNonResponsibilityEmergencyView",
                    component: (resolve) =>
                        require(["@/views/GX/GxNonResponsibilityEmergency/View"], resolve),
                    meta: {
                        title: "非责任突发事件详情",
                    },
                },
                {
                    path: "/GxEmergencyPlan",
                    component: (resolve) =>
                        require(["@/views/GX/GxEmergencyPlan/List"], resolve),
                    meta: {
                        title: "应急演练记录",
                    },
                },
                {
                    path: "/GxEmergencyPlanView",
                    component: (resolve) =>
                        require(["@/views/GX/GxEmergencyPlan/View"], resolve),
                    meta: {
                        title: "应急演练记录详情",
                    },
                },
                {
                    path: "/GxPreWorkMetting",
                    component: (resolve) =>
                        require(["@/views/GX/GxPreWorkMetting/List"], resolve),
                    meta: {
                        title: "班前会议",
                    },
                },
                {
                    path: "/GxPreWorkMettingView",
                    component: (resolve) =>
                        require(["@/views/GX/GxPreWorkMetting/View"], resolve),
                    meta: {
                        title: "班前会议详情",
                    },
                },
                {
                    path: "/GxPreWorkMettingEdit",
                    component: (resolve) =>
                        require(["@/views/GX/GxPreWorkMetting/Edit"], resolve),
                    meta: { title: "编辑班前会议" },
                },
                {
                    path: "/GxInterviewRecord",
                    component: (resolve) =>
                        require(["@/views/GX/GxInterviewRecord/List"], resolve),
                    meta: {
                        title: "约谈记录",
                    },
                },
                {
                    path: "/GxInterviewRecordView",
                    component: (resolve) =>
                        require(["@/views/GX/GxInterviewRecord/View"], resolve),
                    meta: {
                        title: "约谈记录详情",
                    },
                },
                {
                    path: "/GxInterviewRecordEdit",
                    component: (resolve) =>
                        require(["@/views/GX/GxInterviewRecord/Edit"], resolve),
                    meta: { title: "编辑约谈记录" },
                },
            ],
        },
        {
            path:"/SubUnit",
            component:(resolve)=>require(["@/views/company/index"],resolve),
            meta:{
                title:"企业列表"
            },
            children:[{
                path:"/SubUnit",
                meta:{title:"企业列表"},
                component:(resolve)=>
                    require(["@/views/company/components/List"],resolve)
            },
            {
                path:"/SubUnitAdd",
                meta:{title:"企业新增",keepAlive:true},
                component:(resolve)=>
                    require(["@/views/company/components/Add"],resolve)
            }
        
        ]
        },
        //广州南沙
        {
            path: "/NS",
            component: () =>
                import ("@/views/NS/index"),
            meta: {
                title: "南沙",
            },
            children: [{
                    path: "/NsCheckUserInfo",
                    component: () =>
                        import ("@/views/NS/NsCheckUserInfo/List"),
                    meta: {
                        title: "人员档案",
                    },
                },
                {
                    path: "/NsCheckUserInfoView",
                    component: () =>
                        import ("@/views/NS/NsCheckUserInfo/View"),
                    meta: {
                        title: "人员档案详细",
                    },
                },
                {
                    path: "/NsOccupationalDiseasesFile",
                    component: () =>
                        import ("@/views/NS/NsOccupationalDiseasesFile/List"),
                    meta: {
                        title: "其他文档",
                    },
                },
                {
                    path: "/NsOccupationalDiseasesFileView",
                    component: () =>
                        import ("@/views/NS/NsOccupationalDiseasesFile/View"),
                    meta: {
                        title: "其他文档详细",
                    },
                },
                {
                    path: "/NsOccupationalDiseasesReason",
                    component: () =>
                        import ("@/views/NS/NsOccupationalDiseasesReason/List"),
                    meta: {
                        title: "危害因素清单",
                    },
                },
                {
                    path: "/NsOccupationalDiseasesReasonView",
                    component: () =>
                        import ("@/views/NS/NsOccupationalDiseasesReason/View"),
                    meta: {
                        title: "危害因素清单详细",
                    },
                },
                {
                    path: "/NsOccupationalDiseasesRecord",
                    component: () =>
                        import ("@/views/NS/OccupationalDiseasesRecord/List"),
                    meta: {
                        title: "危害因素档案",
                    },
                },
                {
                    path: "/NsOccupationalDiseasesRecordView",
                    component: () =>
                        import ("@/views/NS/OccupationalDiseasesRecord/View"),
                    meta: {
                        title: "危害因素档案详细",
                    },
                },
            ],
        },
        {
            path: "/couponactivity",
            component: (resolve) => require(["@/views/pa/CouponActivity"], resolve),
            meta: {
                title: "卡券激活",
            },
        },
        {
            path: "/palogin",
            component: (resolve) => require(["@/views/pa/AutoLogin"], resolve),
            meta: {
                title: "安全生产管控平台",
            },
        },
        {
            path: "/PARegister",
            component: (resolve) => require(["@/views/pa/Register"], resolve),
            meta: {
                title: "注册",
            },
        },
        //清远高新
        {
            path: "/qy",
            component: (resolve) => require(["@/views/qyaq/index"], resolve),
            meta: {
                title: "检查报告模板",
            },
            children: [{
                    path: "/DangerReportNumSet",
                    component: (resolve) =>
                        require(["@/views/qyaq/DangerReportNumSet/List"], resolve),
                    meta: {
                        title: "检查报告模板",
                    },
                },
                {
                    path: "/DangerReportNumSet/Detail",
                    meta: { title: "编号设置" },
                    component: (resolve) =>
                        require(["@/views/qyaq/DangerReportNumSet/Detail"], resolve),
                },
                {
                    path: "/DangerReportNumHistory",
                    meta: { title: "报告编号对应表" },
                    component: (resolve) =>
                        require(["@/views/qyaq/DangerReportNumSet/HistoryList"], resolve),
                },
            ],
        },
        //清远高新检查次数统计
        {
            path: "/qyaqCheckSum",
            component: (resolve) => require(["@/views/qyaqCheckSum/index"], resolve),
            meta: {
                title: "检查次数统计",
            },
            children: [{
                path: "/qyaqCheckSum",
                component: (resolve) =>
                    require(["@/views/qyaqCheckSum/qyaqCheckSum/List"], resolve),
                meta: { title: "检查次数统计" },
            }, ],
        },
        //一键救援
        {
            path: "/clickAlarm",
            component: (resolve) => require(["@/views/clickAlarm/List"], resolve),
            meta: {
                title: "一键救援",
            },
            children: [{
                path: "/OneClickAlarm",
                component: (resolve) => require(["@/views/clickAlarm/List"], resolve),
                meta: {
                    title: "一键上报应急中心",
                },
            }, ],
        },
        //投诉
        {
            path: "/YatComplain",
            component: (resolve) => require(["@/views/yatComplain/index"], resolve),
            redirect: "/YatComplain",
            meta: {
                title: "投诉",
            },
            children: [{
                    path: "/YatComplain",

                    meta: { title: "投诉信息" },
                    component: (resolve) =>
                        require(["@/views/yatComplain/yatComplain/List"], resolve),
                },
                {
                    path: "Detail",
                    meta: { title: "投诉详情" },
                    component: (resolve) =>
                        require(["@/views/yatComplain/yatComplain/Detail"], resolve),
                },

                {
                    path: "Edit",
                    name: "edit-complain",
                    component: (resolve) =>
                        require(["@/views/yatComplain/yatComplain/Edit"], resolve),
                },
            ],
        },
        //反馈
        {
            path: "/YATFeedback",
            component: (resolve) => require(["@/views/yatFeedback/index"], resolve),
            redirect: "/YATFeedback",
            meta: {
                title: "反馈",
            },
            children: [{
                    path: "/YATFeedback",

                    meta: { title: "反馈信息" },
                    component: (resolve) =>
                        require(["@/views/yatFeedback/yatFeedback/List"], resolve),
                },
                {
                    path: "Detail",
                    meta: { title: "反馈详情" },
                    component: (resolve) =>
                        require(["@/views/yatFeedback/yatFeedback/Detail"], resolve),
                },

                {
                    path: "Edit",
                    name: "edit-complain",
                    component: (resolve) =>
                        require(["@/views/yatFeedback/yatFeedback/Edit"], resolve),
                },
            ],
        },
        //管理制度台账
        {
            path: "/YatManagementDocs",
            component: (resolve) =>
                require(["@/views/yatManagementDocs/index"], resolve),
            redirect: "/YatManagementDocs",
            meta: {
                title: "管理制度台账",
            },
            children: [{
                    path: "/YatManagementDocs",

                    meta: { title: "管理制度信息" },
                    component: (resolve) =>
                        require([
                            "@/views/yatManagementDocs/yatManagementDocs/List",
                        ], resolve),
                },
                {
                    path: "Detail",
                    meta: { title: "管理制度详情" },
                    component: (resolve) =>
                        require([
                            "@/views/yatManagementDocs/yatManagementDocs/Detail",
                        ], resolve),
                },

                {
                    path: "Edit",
                    meta: { title: "上传管理制度" },
                    component: (resolve) =>
                        require([
                            "@/views/yatManagementDocs/yatManagementDocs/Edit",
                        ], resolve),
                },
                {
                    path: "Record",
                    meta: { title: "上传附件记录" },
                    component: (resolve) =>
                        require([
                            "@/views/yatManagementDocs/yatManagementDocs/Record",
                        ], resolve),
                },
                {
                    path: "Recordlist",
                    meta: { title: "上传附件记录列表" },
                    component: (resolve) =>
                        require([
                            "@/views/yatManagementDocs/yatManagementDocs/Recordlist",
                        ], resolve),
                },
            ],
        },
        {
            path: "/Site_Plan",
            component: (resolve) =>
                require(["@/views/site/index"], resolve),
            redirect: "/Site_Plan",
            meta: {
                title: "应急预案",
            },
            children: [{
                    path: "/Site_Plan",

                    meta: { title: "应急预案" },
                    component: (resolve) =>
                        require([
                            "@/views/site/site/list",
                        ], resolve),
                },
                {
                    path: "Edit",

                    meta: { title: "应急预案[编辑]" },
                    component: (resolve) =>
                        require([
                            "@/views/site/site/edit_add",
                        ], resolve),
                },
                {
                    path: "Add",

                    meta: { title: "应急预案[新增]" },
                    component: (resolve) =>
                        require([
                            "@/views/site/site/edit_add",
                        ], resolve),
                },
                {
                    path: "Detail",

                    meta: { title: "应急预案[详情]" },
                    component: (resolve) =>
                        require([
                            "@/views/site/site/detail",
                        ], resolve),
                }

            ],
        },
        {
            path: "/OperationLimitedSpace",
            component: (resolve) =>
                require(["@/views/limitedSpace/index"], resolve),
            redirect: "/Site_Plan",
            meta: {
                title: "有限空间台账",
            },
            children: [{
                    path: "/OperationLimitedSpace",

                    meta: { title: "有限空间台账" },
                    component: (resolve) =>
                        require([
                            "@/views/limitedSpace/limitedSpace/list",
                        ], resolve),
                },
                {
                    path: "Edit",

                    meta: { title: "有限空间台账[编辑]" },
                    component: (resolve) =>
                        require([
                            "@/views/limitedSpace/limitedSpace/edit_add",
                        ], resolve),
                },
                {
                    path: "Add",

                    meta: { title: "有限空间台账[新增]" },
                    component: (resolve) =>
                        require([
                            "@/views/limitedSpace/limitedSpace/edit_add",
                        ], resolve),
                },
                {
                    path: "Detail",

                    meta: { title: "有限空间台账[详情]" },
                    component: (resolve) =>
                        require([
                            "@/views/limitedSpace/limitedSpace/detail",
                        ], resolve),
                }

            ],
        }, ,
        //风险分级管控
        {
            path: "/YatManagementDocsFx",
            component: (resolve) =>
                require(["@/views/yatManagementDocsFx/index"], resolve),
            redirect: "/YatManagementDocsFx",
            meta: {
                title: "风险分级管控",
            },
            children: [{
                    path: "/YatManagementDocsFx",

                    meta: { title: "风险分级管控信息" },
                    component: (resolve) =>
                        require([
                            "@/views/yatManagementDocsFx/yatManagementDocsFx/List",
                        ], resolve),
                },
                {
                    path: "Detail",
                    meta: { title: "风险分级管控详情" },
                    component: (resolve) =>
                        require([
                            "@/views/yatManagementDocsFx/yatManagementDocsFx/Detail",
                        ], resolve),
                },

                {
                    path: "Edit",
                    meta: { title: "上传风险分级管控" },
                    component: (resolve) =>
                        require([
                            "@/views/yatManagementDocsFx/yatManagementDocsFx/Edit",
                        ], resolve),
                },
            ],
        },

        //万华
        {
            path: "/Folder6",
            component: (resolve) => require(["@/views/wh/index"], resolve),
            meta: {
                title: "事故管理",
            },
            children: [{
                    path: "/Folder6",
                    meta: { title: "事故管理" },
                    component: (resolve) =>
                        require(["@/views/Folder/Folder/List"], resolve),
                },
                {
                    //path:"/AccidentInitReport"
                    path: "/whAccidentInitialReportList",
                    component: (resolve) =>
                        require(["@/views/wh/whAccidentInitialReport/list"], resolve),
                    meta: {
                        title: "初始报告",
                    },
                },
                {
                    path: "/whInvestigationReportAccidentInvestigate",
                    component: (resolve) =>
                        require(["@/views/wh/whInvestigationReport/list"], resolve),
                    meta: {
                        title: "事故调查报告",
                    },
                },
                {
                    path: "/AccidentInvestigateAllList",
                    component: (resolve) =>
                        require(["@/views/wh/whInvestigationReport/allList"], resolve),
                    meta: {
                        title: "事故调查报告预览表",
                    },
                },
                {
                    path: "/whInvestigationReportAssistSend",
                    component: (resolve) =>
                        require(["@/views/wh/whInvestigationReport/assistSend"], resolve),
                    meta: {
                        title: "选择协助人员",
                    },
                },
                {
                    path: "/whAccidentInitialReportToBeAssignedList",
                    component: (resolve) =>
                        require([
                            "@/views/wh/whAccidentInitialReport/toBeAssignedList",
                        ], resolve),
                    meta: {
                        title: "指派调查组长",
                    },
                },
                {
                    path: "/whAccidentInitialReportDetail",
                    meta: { title: "新增初始报告" },
                    component: (resolve) =>
                        require(["@/views/wh/whAccidentInitialReport/detail"], resolve),
                },
                {
                    path: "/whInvestigationReportDetail",
                    meta: { title: "调查报告编辑" },
                    component: (resolve) =>
                        require(["@/views/wh/whInvestigationReport/detail"], resolve),
                },
                {
                    path: "/whAccidentInitialReportView",
                    meta: { title: "初始报告详情" },
                    component: (resolve) =>
                        require(["@/views/wh/whAccidentInitialReport/view"], resolve),
                },
                {
                    path: "/whInvestigationReportView",
                    meta: { title: "调查报告详情" },
                    component: (resolve) =>
                        require(["@/views/wh/whInvestigationReport/view"], resolve),
                },
                {
                    path: "/whInvestigationReportLogCorrectiveList",
                    meta: { title: "措施整改" },
                    component: (resolve) =>
                        require([
                            "@/views/wh/whInvestigationReportLog/correctiveList",
                        ], resolve),
                },
                {
                    path: "/whInvestigationReportLogVerifyList",
                    meta: { title: "措施验收" },
                    component: (resolve) =>
                        require([
                            "@/views/wh/whInvestigationReportLog/verifyList",
                        ], resolve),
                },
                {
                    path: "/whInvestigationReportLogAllList",
                    meta: { title: "措施统计" },
                    component: (resolve) =>
                        require(["@/views/wh/whInvestigationReportLog/allList"], resolve),
                },
                {
                    path: "/whInvestigationReportLogRMBrowseDetail",
                    meta: { title: "整改验收" },
                    component: (resolve) =>
                        require([
                            "@/views/wh/whInvestigationReportLog/rmbRowseDetail",
                        ], resolve),
                },
                {
                    path: "/AccidentInitReportApprove",
                    meta: { title: "审批历史" },
                    component: (resolve) =>
                        require([
                            "@/views/components/wh/accidentInitReportApprove",
                        ], resolve),
                },
            ],
        },
        //Demo
        {
            path: "/demo",
            component: (resolve) => require(["@/views/demo/rain.vue"], resolve),
            meta: {
                title: "Demo",
            },
        },
        //Demo
        {
            path: "/selectDemo",
            component: (resolve) => require(["@/views/demo/selectDemo.vue"], resolve),
            meta: {
                title: "选择组件",
            },
        },
        //Demo
        {
            path: "/formDemo",
            component: (resolve) => require(["@/views/demo/formDemo.vue"], resolve),
            meta: {
                title: "表单Demo",
            },
        },
        //Demo
        {
            path: "/tabList",
            component: (resolve) => require(["@/views/demo/tabList.vue"], resolve),
            meta: {
                title: "TabList例子",
            },
        },
        //预案
        {
            path: "/Plan",
            component: (resolve) => require(["@/views/Plan/index"], resolve),
            meta: {
                title: "应急管理",
            },
            children: [{
                    path: "PlanSiteDisposalPlanView",
                    meta: {
                        title: "现场处置方案详情",
                    },
                    component: (resolve) =>
                        require(["@/views/Plan/PlanSiteDisposalPlan/View"], resolve),
                },
                // {
                //   path: "Check",
                //   meta: {
                //     title: "应急物资点检"
                //   },
                //   component: (resolve) => require(['@/views/Plan/PlanEmergencyResourceCheck/Check'], resolve),
                // },
                // {
                //   path: "Detail",
                //   meta: {
                //     title: "记录详情"
                //   },
                //   component: (resolve) => require(['@/views/Plan/PlanEmergencyResourceCheck/Detail'], resolve),
                // },
            ],
        },
        //风险分级管控
        {
            path: "/RiskPoint",
            component: (resolve) => require(["@/views/RiskPoint/index"], resolve),
            meta: {
                title: "风险分级管控",
            },
            children: [{
                    path: "/Risk",
                    meta: {
                        title: "风险分级管控",
                    },
                    component: (resolve) =>
                        require(["@/views/RiskPoint/Components/List"], resolve),
                },
                {
                    path: "RiskPointList",
                    meta: {
                        title: "风险点划分",
                    },
                    component: (resolve) =>
                        require(["@/views/RiskPoint/RiskPoint/list"], resolve),
                },
                {
                    path: "RiskPointAdd",
                    meta: {
                        title: "新增风险点",
                    },
                    component: (resolve) =>
                        require(["@/views/RiskPoint/RiskPoint/add"], resolve),
                },
                {
                    path: "RiskPointDetail",
                    meta: {
                        title: "风险点信息",
                    },
                    component: (resolve) =>
                        require(["@/views/RiskPoint/RiskPoint/detail"], resolve),
                },
                {
                    path: "RiskPointCheckRecord",
                    meta: {
                        title: "风险点检查记录",
                    },
                    component: (resolve) =>
                        require(["@/views/RiskPoint/RiskPoint/checkRecord"], resolve),
                },
                {
                    path: "RiskPointCheckTask",
                    meta: {
                        title: "风险点检查任务",
                    },
                    component: (resolve) =>
                        require(["@/views/RiskPoint/RiskPoint/checkTask"], resolve),
                },
                {
                    path: "QRCode",
                    meta: {
                        title: "风险点二维码",
                    },
                    component: (resolve) =>
                        require(["@/views/base/components/QRCode"], resolve),
                },
                {
                    path: "RiskPointIdentify",
                    meta: {
                        title: "风险辨识管控",
                    },
                    component: (resolve) =>
                        require(["@/views/RiskPoint/RiskPointIdentify/list"], resolve),
                },
                {
                    path: "RiskPointIdentifyDetail",
                    meta: {
                        title: "风险辨识管控详情",
                    },
                    component: (resolve) =>
                        require(["@/views/RiskPoint/RiskPointIdentify/detail"], resolve),
                },
                {
                    path: "RiskOpRegulation",
                    meta: {
                        title: "安全作业规程",
                    },
                    component: (resolve) =>
                        require(["@/views/RiskPoint/RiskOpRegulation/list"], resolve),
                },
                {
                    path: "RiskOpRegulationDetail",
                    meta: {
                        title: "安全作业规程详情",
                    },
                    component: (resolve) =>
                        require(["@/views/RiskPoint/RiskOpRegulation/detail"], resolve),
                },
                {
                    path: "RiskOpRegulationEdit",
                    meta: {
                        title: "安全作业规程编辑",
                    },
                    component: (resolve) =>
                        require(["@/views/RiskPoint/RiskOpRegulation/edit"], resolve),
                },
                // {
                //   path: "RiskMarkItem",
                //   meta: {
                //     title: ""
                //   },
                //   component: (resolve) => require(['@/views/RiskPoint/RiskMark/RiskMarkItem'], resolve),
                // },
                {
                    path: "RiskNotifyCard",
                    meta: {
                        title: "风险告知卡",
                    },
                    component: (resolve) =>
                        require(["@/views/RiskPoint/RiskNotifyCard/list"], resolve),
                },
                {
                    path: "RiskNotifyCardDetail",
                    meta: {
                        title: "风险告知卡详情",
                    },
                    component: (resolve) =>
                        require(["@/views/RiskPoint/RiskNotifyCard/detail"], resolve),
                },
                {
                    path: "RiskMapLevel",
                    meta: {
                        title: "风险分布图",
                    },
                    component: (resolve) =>
                        require(["@/views/RiskPoint/RiskMapLevel/list"], resolve),
                },
                {
                    path: "RiskMapLevelDetail",
                    meta: {
                        title: "风险分布图详情",
                    },
                    component: (resolve) =>
                        require(["@/views/RiskPoint/RiskMapLevel/detail"], resolve),
                },
                {
                    path: "RiskTemplateCompany",
                    meta: {
                        title: "公司级检查表",
                    },
                    component: (resolve) =>
                        require([
                            "@/views/RiskPoint/RiskTemplate/companyTemplateList",
                        ], resolve),
                },
                {
                    path: "RiskTemplateDept",
                    meta: {
                        title: "部门车间级检查表",
                    },
                    component: (resolve) =>
                        require([
                            "@/views/RiskPoint/RiskTemplate/deptTemplateList",
                        ], resolve),
                },
                {
                    path: "RiskTemplatePost",
                    meta: {
                        title: "岗位级检查表",
                    },
                    component: (resolve) =>
                        require([
                            "@/views/RiskPoint/RiskTemplate/postTemplateList",
                        ], resolve),
                },
            ],
        },
        //消防器材清单
        {
            path: "/SiteFireEquipment",
            component: (resolve) =>
                require(["@/views/SiteFireEquipment/index"], resolve),
            meta: {
                title: "消防器材清单",
            },
            children: [{
                    path: "/SiteFireEquipment",
                    meta: { title: "消防器材清单" },
                    component: (resolve) =>
                        require([
                            "@/views/SiteFireEquipment/SiteFireEquipment/List",
                        ], resolve),
                },
                {
                    path: "/SiteFireEquipmentDetail",
                    meta: { title: "消防器材清单[详情]" },
                    component: (resolve) =>
                        require([
                            "@/views/SiteFireEquipment/SiteFireEquipment/Detail",
                        ], resolve),
                },
                {
                    path: "/SiteFireEquipmentCheck",
                    meta: { title: "消防器材清单[点检]" },
                    component: (resolve) =>
                        require([
                            "@/views/SiteFireEquipment/SiteFireEquipment/templateCheck",
                        ], resolve),
                },
                {
                    path: "/SiteFireEquipmentCheckRecord",
                    meta: { title: "消防器材清单点检历史" },
                    component: (resolve) =>
                        require([
                            "@/views/SiteFireEquipment/SiteFireEquipment/listHis",
                        ], resolve),
                },
                {
                    path: "/SiteFireEquipmentExceptionlist",
                    meta: { title: "消防器材异常清单" },
                    component: (resolve) =>
                        require([
                            "@/views/SiteFireEquipment/SiteFireEquipment/Exceptionlist",
                        ], resolve),
                },
                {
                    path: "QRCode",
                    meta: { title: "消防器材二维码" },
                    component: (resolve) =>
                        require(["@/views/base/components/QRCode"], resolve),
                },
            ],
        },

        //非安全生产类
        {
            path: "/NonSafetyProduction",
            component: (resolve) =>
                require(["@/views/NonSafetyProduction/index"], resolve),
            meta: {
                title: "非安全生产隐患",
            },
            children: [{
                    path: "/NonSafetyProduction/Edit",
                    name: "addNonSafetyProduction",
                    component: (resolve) =>
                        require([
                            "@/views/NonSafetyProduction/NonSafetyProduction/Edit",
                        ], resolve),
                },
                {
                    path: "/NonSafetyProduction/List",
                    meta: { title: "非安全生产隐患列表" },
                    component: (resolve) =>
                        require([
                            "@/views/NonSafetyProduction/NonSafetyProduction/List",
                        ], resolve),
                },
                {
                    path: "/NonSafetyProduction/Detail",
                    meta: { title: "查看非安全生产隐患" },
                    component: (resolve) =>
                        require([
                            "@/views/NonSafetyProduction/NonSafetyProduction/Detail",
                        ], resolve),
                },
            ],
        },
        //整改反馈
        {
            path: "/RCfeedback",
            component: (resolve) => require(["@/views/RCfeedback/index"], resolve),
            meta: {
                title: "整改反馈",
            },
            children: [{
                    path: "/RCfeedback/Edit",
                    meta: { title: "整改反馈" },
                    component: (resolve) =>
                        require(["@/views/RCfeedback/RCfeedback/Edit"], resolve),
                },
                {
                    path: "/RCfeedback/List",
                    meta: { title: "隐患整改反馈列表" },
                    component: (resolve) =>
                        require(["@/views/RCfeedback/RCfeedback/List"], resolve),
                },
                {
                    path: "/RCfeedback/Detail",
                    meta: { title: "查看隐患整改反馈详情" },
                    component: (resolve) =>
                        require(["@/views/RCfeedback/RCfeedback/Detail"], resolve),
                },
            ],
        },

        // 危险作业上报
        {
            path: "/SiteDangerOperateApplyRecord",
            component: (resolve) =>
                require(["@/views/SiteDangerOperateApplyRecord/index"], resolve),
            meta: {
                title: "危险作业上报",
            },
            children: [{
                    path: "/SiteDangerOperateApplyRecord/Edit",
                    meta: { title: "危险作业上报" },
                    component: (resolve) =>
                        require([
                            "@/views/SiteDangerOperateApplyRecord/SiteDangerOperateApplyRecord/Edit",
                        ], resolve),
                },
                {
                    path: "/SiteDangerOperateApplyRecord",
                    meta: { title: "危险作业上报记录" },
                    component: (resolve) =>
                        require([
                            "@/views/SiteDangerOperateApplyRecord/SiteDangerOperateApplyRecord/List",
                        ], resolve),
                },
                {
                    path: "/SiteDangerOperateApplyRecord/Detail",
                    meta: { title: "危险作业上报记录[详情]" },
                    component: (resolve) =>
                        require([
                            "@/views/SiteDangerOperateApplyRecord/SiteDangerOperateApplyRecord/Detail",
                        ], resolve),
                },
                {
                    path: "/SiteDangerOperateApplyRecord/jieshu",
                    meta: { title: "危险作业上报记录[结束]" },
                    component: (resolve) =>
                        require([
                            "@/views/SiteDangerOperateApplyRecord/SiteDangerOperateApplyRecord/jieshu",
                        ], resolve),
                },
            ],
        },

        // 危险作业上报
        {
            path: "/SiteDangerOperateApplyRecord",
            component: (resolve) =>
                require(["@/views/SiteDangerOperateApplyRecord/index"], resolve),
            meta: {
                title: "集团预警消息",
            },
            children: [{
                path: "/mky/view",
                meta: { title: "集团预警消息" },
                component: (resolve) => require(["@/views/mky/view"], resolve),
            }, ],
        },

        // 改派其他安全监督检查任务
        {
            path: "/SafetyProduction",
            component: (resolve) =>
                require(["@/views/OtherdangerTaskReassignment/index"], resolve),
            meta: {
                title: "改派其他安全监督检查任务",
            },
            children: [{
                    path: "/OtherdangerTaskReassignment/Edit",
                    name: "addSafetyProduction",
                    component: (resolve) =>
                        require([
                            "@/views/OtherdangerTaskReassignment/OtherdangerTaskReassignment/Edit",
                        ], resolve),
                },
                {
                    path: "/OtherdangerTaskReassignment/List",
                    meta: { title: "改派其他安全监督检查任务" },
                    component: (resolve) =>
                        require([
                            "@/views/OtherdangerTaskReassignment/OtherdangerTaskReassignment/List",
                        ], resolve),
                },
                {
                    path: "/OtherdangerTaskReassignment/Detail",
                    meta: { title: "改派其他安全监督检查任务详情" },
                    component: (resolve) =>
                        require([
                            "@/views/OtherdangerTaskReassignment/OtherdangerTaskReassignment/Detail",
                        ], resolve),
                },
                {
                    path: "/OtherdangerTaskReassignment/examineApprove",
                    meta: { title: "改派任务" },
                    component: (resolve) =>
                        require([
                            "@/views/OtherdangerTaskReassignment/OtherdangerTaskReassignment/examineApprove",
                        ], resolve),
                },
                {
                    path: "/OtherdangerTaskReassignment/feedhiddendanger",
                    meta: { title: "隐患列表" },
                    component: (resolve) =>
                        require([
                            "@/views/OtherdangerTaskReassignment/OtherdangerTaskReassignment/feedhiddendanger",
                        ], resolve),
                },
                {
                    path: "/OtherdangerTaskReassignment/HidddangerEdit",
                    meta: { title: "隐患编辑" },
                    component: (resolve) =>
                        require([
                            "@/views/OtherdangerTaskReassignment/OtherdangerTaskReassignment/HidddangerEdit",
                        ], resolve),
                },
                {
                    path: "/OtherdangerTaskReassignment/feedhiddendangerDetail",
                    meta: { title: "隐患详情" },
                    component: (resolve) =>
                        require([
                            "@/views/OtherdangerTaskReassignment/OtherdangerTaskReassignment/feedhiddendangerDetail",
                        ], resolve),
                },
            ],
        },

        // 指派其他安全监督检查任务
        {
            path: "/OtherdangerTaskAssign",
            component: (resolve) =>
                require(["@/views/OtherdangerTaskAssign/index"], resolve),
            meta: {
                title: "指派其他安全监督检查任务",
            },
            children: [{
                    path: "/OtherdangerTaskAssign/List",
                    meta: { title: "指派其他安全监督检查任务" },
                    component: (resolve) =>
                        require([
                            "@/views/OtherdangerTaskAssign/OtherdangerTaskAssign/List",
                        ], resolve),
                },
                {
                    path: "/OtherdangerTaskAssign/Detail",
                    meta: { title: "指派其他安全监督检查任务详情" },
                    component: (resolve) =>
                        require([
                            "@/views/OtherdangerTaskAssign/OtherdangerTaskAssign/Detail",
                        ], resolve),
                },
                {
                    path: "/OtherdangerTaskAssign/PushfactionTask",
                    meta: { title: "指派任务" },
                    component: (resolve) =>
                        require([
                            "@/views/OtherdangerTaskAssign/OtherdangerTaskAssign/PushfactionTask",
                        ], resolve),
                },
            ],
        },

        // Other隐患排查
        {
            path: "/OtherDanger",
            component: (resolve) => require(["@/views/Otherdanger/index"], resolve),
            redirect: "/OtherDanger",
            meta: {
                title: "隐患排查",
            },
            children: [{
                    path: "/OtherDanger",

                    meta: { title: "隐患排查" },
                    component: (resolve) =>
                        require(["@/views/Otherdanger/main"], resolve),
                },
                {
                    path: "DangerTemplateList",

                    meta: { title: "检查表" },
                    component: (resolve) =>
                        require(["@/views/Otherdanger/OtherdangerTemplate/list"], resolve),
                },
                {
                    path: "DangerTemplateDetail",
                    meta: { title: "检查表详情" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckTaskDetail/templateDetailWindow",
                        ], resolve),
                },
                {
                    path: "Classifys",
                    meta: { title: "检查依据" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckTaskDetail/windowClassifys",
                        ], resolve),
                },
                {
                    path: "ClassifysDetail",
                    name: "ClassifysDetail",
                    meta: { title: "检查依据详情" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckTaskDetail/classifysDetail",
                        ], resolve),
                },
                {
                    path: "ClassifysSearch",
                    name: "ClassifysSearch",
                    meta: { title: "检查依据搜索" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckTaskDetail/ClassifysSearch",
                        ], resolve),
                },
                {
                    path: "OtherDangerCheckTaskDetailEdit",
                    name: "OtherDangerCheckTaskDetailEdit",
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckTaskDetail/detail",
                        ], resolve),
                },
                {
                    path: "MyCheckListSet",
                    name: "MyCheckListSet",
                    meta: { title: "检查表设置", keepAlive: true },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckPlan/MyCheckListSet",
                        ], resolve),
                },
                {
                    path: "InspectionWay",
                    name: "InspectionWay",
                    meta: { title: "选择巡检路线" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerPatrolRoute/inspectionWay",
                        ], resolve),
                },
                {
                    path: "checkplan",
                    meta: { title: "检查计划清单" },
                    component: (resolve) =>
                        require(["@/views/Otherdanger/OtherdangerCheckPlan/list"], resolve),
                },
                {
                    path: "CheckPlanDetail",
                    meta: { title: "检查计划详情" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckPlan/detail",
                        ], resolve),
                },
                {
                    path: "CheckPlanEdit",
                    name: "CheckPlanEdit",
                    meta: { title: "编辑检查计划" },
                    component: (resolve) =>
                        require(["@/views/Otherdanger/OtherdangerCheckPlan/edit"], resolve),
                },
                {
                    path: "CheckPlanFollowDetail",
                    meta: { title: "检查任务跟踪详情" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckPlan/followDetail",
                        ], resolve),
                },
                {
                    path: "CheckPlanHistoryList",
                    meta: { title: "任务检查记录" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckPlan/historyList",
                        ], resolve),
                },
                {
                    path: "DangerCheckPlanApprove",
                    meta: { title: "审批历史" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckPlan/approve",
                        ], resolve),
                },
                {
                    path: "DangerCheckPlanFollow",
                    meta: { title: "检查任务跟踪" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckPlan/followList",
                        ], resolve),
                },
                // 隐患任务
                {
                    path: "DangerAcceptanceTaskList",
                    meta: { title: "隐患任务" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherDangerAcceptanceTask/list",
                        ], resolve),
                },
                {
                    path: "DangerCheckTaskTaskList",
                    meta: { title: "我的检查任务" },
                    component: (resolve) =>
                        require(["@/views/Otherdanger/OtherdangerCheckTask/list"], resolve),
                },
                {
                    path: "DangerCheckTaskEdit",
                    meta: { title: "检查任务详情" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckTask/detail",
                        ], resolve),
                },
                // 已推送
                {
                    path: "DangerCheckTaskpushed",
                    meta: { title: "已推送任务详情" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckTask/pusheddetail",
                        ], resolve),
                },
                {
                    path: "DangerCheckTaskVerifyPushedList",
                    meta: { title: "已推送隐患" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckTask/PushedlistVerify",
                        ], resolve),
                },
                {
                    path: "DangerCheckTaskVerifyPushedDetail",
                    meta: { title: "已推送隐患详情" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckTask/windowVerifyPushDetail",
                        ], resolve),
                },

                {
                    path: "DangerCheckTaskTemplateList",
                    meta: { title: "任务检查表" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckTask/checkTaskTemplateList",
                        ], resolve),
                },
                {
                    path: "checkVerifyuserList",
                    meta: { title: "验收人管理" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckTask/checkVerifyuserList",
                        ], resolve),
                },
                {
                    path: "DangerCheckTaskFileList",
                    meta: { title: "检查现场照片" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckTask/MyTaskFileList",
                        ], resolve),
                },

                {
                    path: "DangerTemplateCheckResult",
                    meta: { title: "检查表检查结果" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckTaskDetail/templateCheckResult",
                        ], resolve),
                },

                {
                    path: "DangerCheckTaskDetailListtwo",
                    meta: { title: "提交检查任务" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckTaskDetail/listtwo",
                        ], resolve),
                },
                
                {
                    path: "DangerCheckDetailViewtwo",
                    name: "DangerCheckDetailViewtwo",
                    meta: { title: "检查任务详情" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckTaskDetail/viewtwo",
                        ], resolve),
                },

                {
                    path: "OtherDangerAcceptanceTaskTemporary",
                    name: "OtherDangerAcceptanceTaskTemporary",
                    meta: { title: "发起临时监督检查" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherDangerAcceptanceTask/Temporarytask",
                        ], resolve),
                },
                {
                    path: "DangerCheckTaskView",
                    meta: { title: "检查任务详情" },
                    component: (resolve) =>
                        require(["@/views/Otherdanger/OtherdangerCheckTask/view"], resolve),
                },
                {
                    path: "DangerCheckPlanView",
                    meta: { title: "检查计划详情" },
                    component: (resolve) =>
                        require(["@/views/Otherdanger/OtherdangerCheckPlan/view"], resolve),
                },

                {
                    path: "DangerCheckDetailView",
                    name: "DangerCheckDetailView",
                    meta: { title: "隐患详情" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckTaskDetail/view",
                        ], resolve),
                },
                {
                    path: "Department",
                    name: "Department",
                    meta: { title: "整改部门" },
                    component: (resolve) =>
                        require(["@/views/userOrg/Department"], resolve),
                },

                {
                    path: "DangerCheckTaskDetailVerifyList",
                    meta: { title: "验收隐患" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckTaskDetail/listVerify",
                        ], resolve),
                },
                {
                    path: "DangerCheckTaskDetailVerifyDetail",
                    meta: { title: "验收隐患详情" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckTaskDetail/windowVerifyDetail",
                        ], resolve),
                },
                {
                    path: "CheckReport",
                    meta: { title: "检查报告" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckreport/list",
                        ], resolve),
                },
                {
                    path: "OtherCheckReportDetail",
                    name: "OtherCheckReportDetail",
                    meta: { title: "报告详情", scale: "true" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckreport/checkReportDetail",
                        ], resolve),
                },
                {
                    path: "CheckReportDetail2",
                    name: "CheckReportDetail2",
                    meta: { title: "文件详情", scale: "true" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckreport/checkReportDetail",
                        ], resolve),
                },
                {
                    path: "CheckReportDetail3",
                    name: "CheckReportDetail3",
                    meta: { title: "帮助手册", scale: "true" },
                    component: () =>
                        import (
                            "@/views/Otherdanger/OtherdangerCheckreport/checkReportDetail"
                        ),
                },
                {
                    path: "TaskReport",
                    meta: { title: "生成检查报告（按任务）" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckreport/taskReport",
                        ], resolve),
                },
                {
                    path: "HiddenDangerReport",
                    meta: { title: "生成检查报告（按隐患）" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckreport/hiddenDangerReport",
                        ], resolve),
                },
                {
                    path: "CorrectiveReport",
                    meta: { title: "生成整改报告（按任务）" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckreport/taskReport",
                        ], resolve),
                },
                {
                    path: "CorrectiveHiddenDanger",
                    meta: { title: "生成整改报告（按隐患）" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckreport/hiddenDangerReport",
                        ], resolve),
                },
                {
                    path: "OtherReportdetail",
                    name: "OtherReportdetail",
                    meta: { title: "生成报告" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckreport/reportdetail",
                        ], resolve),
                },
                {
                    path: "/HiddenDanger",
                    meta: { title: "我提报的隐患" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckTaskDetail/listUpload",
                        ], resolve),
                },
                {
                    path: "HiddenDangerUpload",
                    meta: { title: "隐患提报" },
                    component: (resolve) =>
                        require([
                            "@/views/Otherdanger/OtherdangerCheckTaskDetail/detail",
                        ], resolve),
                },
            ],
        },

        //重点企业上报
        {
            path: "/CompanyEscalation",
            component: (resolve) =>
                require(["@/views/CompanyEscalation/index"], resolve),
            meta: {
                title: "重点企业上报",
            },
            children: [{
                    path: "/CompanyEscalation/Edit",
                    name: "addNonSafetyProduction",
                    component: (resolve) =>
                        require([
                            "@/views/CompanyEscalation/CompanyEscalation/Edit",
                        ], resolve),
                },
                {
                    path: "/CompanyEscalation",
                    meta: { title: "重点企业上报" },
                    component: (resolve) =>
                        require([
                            "@/views/CompanyEscalation/CompanyEscalation/List",
                        ], resolve),
                },
                {
                    path: "/CompanyEscalation/Detail",
                    meta: { title: "重点企业上报详情" },
                    component: (resolve) =>
                        require([
                            "@/views/CompanyEscalation/CompanyEscalation/Detail",
                        ], resolve),
                },
            ],
        },
        //未检查企业清单
        {
            path: "/SubordinateEnterprise",
            component: (resolve) =>
                require(["@/views/SubordinateEnterprise/index"], resolve),
            meta: {
                title: "未检查企业清单",
            },
            children: [{
                path: "/SubordinateEnterprise",
                meta: { title: "未检查企业清单" },
                component: (resolve) =>
                    require([
                        "@/views/SubordinateEnterprise/SubordinateEnterprise/List",
                    ], resolve),
            }, ],
        },
        //企业危险上报
        // {
        //   path: "/DGFeedback",
        //   component: (resolve) => require(['@/views/DGFeedback/index'], resolve),
        //   meta: {
        //     title: "企业上报"
        //   },
        //   children: [
        //     {
        //       path: "/DGFeedback",
        //       meta: { title: '企业上报' },
        //       component: (resolve) => require(['@/views/DGFeedback/DGFeedback/DGfeedbackadd'], resolve),
        //     },
        //   ]
        // },

        //市民上报
        {
            path: "/chs",
            component: (resolve) => require(["@/views/chs/index"], resolve),
            meta: {
                title: "茶山",
            },
            children: [{
                    path: "/chsReport/Detail",
                    // meta: { title: '全民举报' },
                    meta: { title: "临时作业，安全隐患报送" },
                    component: (resolve) =>
                        require(["@/views/chs/chsReport/Detail"], resolve),
                },
                {
                    path: "/chsReport/FirstType",
                    meta: { title: "临时作业，安全隐患报送" },
                    component: (resolve) =>
                        require(["@/views/chs/chsReport/FirstType"], resolve),
                },
                {
                    path: "/chsReport/SecondType",
                    meta: { title: "临时作业，安全隐患报送" },
                    component: (resolve) =>
                        require(["@/views/chs/chsReport/SecondType"], resolve),
                },
                {
                    path: "/chsReport/Edit",
                    meta: { title: "临时作业，安全隐患报送" },
                    component: (resolve) =>
                        require(["@/views/chs/chsReport/Edit"], resolve),
                },
            ],
        },
        {
            path: "/CPNS",
            component: (resolve) => require(["@/views/cpns/index"], resolve),
            meta: {
                title: "常平农事",
            },
            children: [{
                    path: "/CPNS/btnlist",
                    // meta: { title: '全民举报' },
                    meta: { title: "常平农事" },
                    component: (resolve) =>
                        require(["@/views/cpns/cpns/btnList"], resolve),
                },

                {
                    path: "/CPNS/info",
                    // meta: { title: '全民举报' },
                    meta: { title: "信息填写" },
                    component: (resolve) =>
                        require(["@/views/cpns/cpns/study"], resolve),
                },
                {
                    path: "/CPNS/List",
                    // meta: { title: '全民举报' },
                    meta: { title: "申请历史" },
                    component: (resolve) =>
                        require(["@/views/cpns/cpns/List"], resolve),
                },
                {
                    path: "/CPNS/AuditHistory",
                    // meta: { title: '全民举报' },
                    meta: { title: "审批历史" },
                    component: (resolve) =>
                        require(["@/views/cpns/cpns/AuditHistory"], resolve),
                }

            ]
        },
        //桥头码上报上报
        {
            path: "/qtyj",
            component: (resolve) => require(["@/views/qtyj/index"], resolve),
            meta: {
                title: "桥头",
            },
            children: [{
                    path: "/qtyjReport/Detail",
                    // meta: { title: '全民举报' },
                    meta: { title: "码上报" },
                    component: (resolve) =>
                        require(["@/views/qtyj/qtyjReport/Detail"], resolve),
                },
                {
                    path: "/qtyjReport/FirstType",
                    meta: { title: "码上报" },
                    component: (resolve) =>
                        require(["@/views/qtyj/qtyjReport/FirstType"], resolve),
                },
                {
                    path: "/qtyjReport/SecondType",
                    meta: { title: "码上报" },
                    component: (resolve) =>
                        require(["@/views/qtyj/qtyjReport/SecondType"], resolve),
                },
                {
                    path: "/qtyjReport/Edit",
                    meta: { title: "码上报" },
                    component: (resolve) =>
                        require(["@/views/qtyj/qtyjReport/Edit"], resolve),
                },
                {
                    path: "/qtyjReport/StudyFirst",
                    meta: { title: "码上学" },
                    component: (resolve) =>
                        require(["@/views/qtyj/qtyjReport/StudyFirst"], resolve),
                },
                {
                    path: "/qtyjReport/study",
                    meta: { title: "码上学" },
                    component: (resolve) =>
                        require(["@/views/qtyj/qtyjReport/study"], resolve),
                },
                {
                    path: "/qtyjReport/study2",
                    meta: { title: "码上学" },
                    component: (resolve) =>
                        require(["@/views/qtyj/qtyjReport/study2"], resolve),
                },
                {
                    path: "/qtyjReport/study3",
                    meta: { title: "码上学" },
                    component: (resolve) =>
                        require(["@/views/qtyj/qtyjReport/study3"], resolve),
                },
                {
                    path: "/qtyjReport/studylog",
                    meta: { title: "阅读记录" },
                    component: (resolve) =>
                        require(["@/views/qtyj/qtyjReport/studylog"], resolve),
                },
            ],
        },
        //市民上报通用版
        {
            path: "/ReportAny",
            component: (resolve) => require(["@/views/ReportAny/index"], resolve),
            meta: {
                title: "报告",
            },
            children: [{
                    path: "/Report/Detail",
                    meta: { title: "全民举报" },
                    component: (resolve) =>
                        require(["@/views/ReportAny/Report/Detail"], resolve),
                },
                {
                    path: "/Report/FirstType",
                    meta: { title: "全民举报" },
                    component: (resolve) =>
                        require(["@/views/ReportAny/Report/FirstType"], resolve),
                },
                {
                    path: "/Report/SecondType",
                    meta: { title: "全民举报" },
                    component: (resolve) =>
                        require(["@/views/ReportAny/Report/SecondType"], resolve),
                },
                {
                    path: "/Report/Edit",
                    meta: { title: "全民举报" },
                    component: (resolve) =>
                        require(["@/views/ReportAny/Report/Edit"], resolve),
                },
            ],
        },
        //市民上报通用版
        {
            path: "/ReportAny",
            component: (resolve) => require(["@/views/ReportAny/index"], resolve),
            meta: {
                title: "报告",
            },
            children: [{
                path: "/yq/access",
                meta: { title: "园区管理" },
                component: (resolve) =>
                    require(["@/views/yq/access/access"], resolve),
            }, ],
        },
        // 凤岗便民
        {
            path: "/fgbm",
            redirect: { path: "/fgbm/btnList" },
            component: (resolve) => require(["@/views/fgbm/index"], resolve),
            meta: { title: "报告" },
            children: [{
                    path: "/fgbm/btnList",
                    meta: { title: "凤岗便民安全应用系统" },
                    component: (resolve) =>
                        require(["@/views/fgbm/main/btnList"], resolve),
                },

                {
                    path: "/fgbm/detail",
                    meta: { title: "凤岗智慧便民安全应用系统" },
                    component: (resolve) =>
                        require(["@/views/fgbm/main/detailForm"], resolve),
                },
                {
                    path: "/fgbm/detail2",
                    meta: { title: "凤岗智慧便民安全应用系统" },
                    component: (resolve) =>
                        require(["@/views/fgbm/main/detailForm2"], resolve),
                },
                {
                    path: "/fgbm/video",
                    meta: { title: "凤岗智慧便民安全应用系统" },
                    component: (resolve) =>
                        require(["@/views/fgbm/main/videoList"], resolve),
                },
                {
                    path: "/fgbm/info",
                    meta: { title: "凤岗智慧便民安全应用系统" },
                    component: (resolve) =>
                        require(["@/views/fgbm/main/info"], resolve),
                },
                {
                    path: "/fgbm/showPdfFile",
                    meta: { title: "文件协议" },
                    component: (resolve) => require(["@/views/fgbm/main/pdf"], resolve),
                },
                {
                    path: "/fgbm/signature",
                    meta: { title: "凤岗智慧便民安全应用系统" },
                    component: (resolve) => require(["@/views/fgbm/main/sign"], resolve),
                },
                {
                    path: "/fgbm/StartExam",
                    meta: { title: "凤岗智慧便民安全应用系统" },
                    component: (resolve) => require(["@/views/fgbm/main/startExam"], resolve),
                },
            ],
        },
        // 桥头便民
        {
            path: "/qtbm",
            redirect: { path: "/qtbm/btnList" },
            component: (resolve) => require(["@/views/qtbm/index"], resolve),
            meta: { title: "报告" },
            children: [{
                    path: "/qtbm/btnList",
                    meta: { title: "安全桥" },
                    component: (resolve) =>
                        require(["@/views/qtbm/main/btnList"], resolve),
                },
                {
                    path: "/qtbm/detail",
                    meta: { title: "安全桥" },
                    component: (resolve) =>
                        require(["@/views/qtbm/main/detailForm"], resolve),
                },
                {
                    path: "/qtbm/video",
                    meta: { title: "安全桥" },
                    component: (resolve) =>
                        require(["@/views/qtbm/main/videoList"], resolve),
                },
                {
                    path: "/qtbm/info",
                    meta: { title: "安全桥" },
                    component: (resolve) =>
                        require(["@/views/qtbm/main/info"], resolve),
                },
                {
                    path: "/qtbm/showPdfFile",
                    meta: { title: "文件协议" },
                    component: (resolve) => require(["@/views/qtbm/main/pdf"], resolve),
                },
                {
                    path: "/qtbm/signature",
                    meta: { title: "安全桥" },
                    component: (resolve) => require(["@/views/qtbm/main/sign"], resolve),
                },
                {
                    path: "/qtbm/StartExam",
                    meta: { title: "安全桥" },
                    component: (resolve) => require(["@/views/qtbm/main/startExam"], resolve),
                },
            ],
        },
        //洪梅 
        {
            path: "/hmbm",
            redirect: { path: "/hmbm/btnList" },
            component: (resolve) => require(["@/views/hmbm/index"], resolve),
            meta: { title: "报告" },
            children: [{
                    path: "/hmbm/btnList",
                    meta: { title: "码上学" },
                    component: (resolve) =>
                        require(["@/views/hmbm/main/btnList"], resolve),
                },
                {
                    path: "/hmbm/detail",
                    meta: { title: "码上学" },
                    component: (resolve) =>
                        require(["@/views/hmbm/main/detailForm"], resolve),
                },
                {
                    path: "/hmbm/video",
                    meta: { title: "码上学" },
                    component: (resolve) =>
                        require(["@/views/hmbm/main/videoList"], resolve),
                },
                {
                    path: "/hmbm/info",
                    meta: { title: "码上学" },
                    component: (resolve) =>
                        require(["@/views/hmbm/main/info"], resolve),
                },
                {
                    path: "/hmbm/showPdfFile",
                    meta: { title: "文件协议" },
                    component: (resolve) => require(["@/views/hmbm/main/pdf"], resolve),
                },
                {
                    path: "/hmbm/signature",
                    meta: { title: "码上学" },
                    component: (resolve) => require(["@/views/hmbm/main/sign"], resolve),
                },
                {
                    path: "/hmbm/StartExam",
                    meta: { title: "码上学" },
                    component: (resolve) => require(["@/views/hmbm/main/startExam"], resolve),
                },
            ],
        },
        {
            path: "/message",
            component: (resolve) => require(["@/views/message/index"], resolve),
            meta: {
                title: "报告",
            },
            children: [{
                path: "/message",
                meta: { title: "消息" },
                component: (resolve) =>
                    require(["@/views/message/message/List"], resolve),
            }, ],
        },
        {
            path: "/Site_Cert",
            component: (resolve) => require(["@/views/site/index"], resolve),
            meta: {
                title: "证书清单",
            },
            children: [{
                    path: "/Site_Cert",
                    meta: { title: "证书清单" },
                    component: (resolve) =>
                        require(["@/views/site/cert/list"], resolve),
                },
                {
                    path: "Edit",

                    meta: { title: "证书清单[编辑]" },
                    component: (resolve) =>
                        require([
                            "@/views/site/cert/edit_add",
                        ], resolve),
                },
                {
                    path: "Add",

                    meta: { title: "证书清单[新增]" },
                    component: (resolve) =>
                        require([
                            "@/views/site/cert/edit_add",
                        ], resolve),
                },
                {
                    path: "Detail",

                    meta: { title: "证书清单[详情]" },
                    component: (resolve) =>
                        require([
                            "@/views/site/cert/detail",
                        ], resolve),
                },
                {
                    path: "CertCheckHis/list",

                    meta: { title: "证书复检记录" },
                    component: (resolve) =>
                        require([
                            "@/views/site/certCheckHis/list",
                        ], resolve),
                },
                {
                    path: "CertCheckHis/Detail",

                    meta: { title: "证书复检记录[详情]" },
                    component: (resolve) =>
                        require([
                            "@/views/site/certCheckHis/detail",
                        ], resolve),
                },
                {
                    path: "CertCheckHis/Edit",

                    meta: { title: "证书复检记录[编辑]" },
                    component: (resolve) =>
                        require([
                            "@/views/site/certCheckHis/edit_add",
                        ], resolve),
                },
                {
                    path: "CertCheckHis/Add",

                    meta: { title: "证书复检记录[新增]" },
                    component: (resolve) =>
                        require([
                            "@/views/site/certCheckHis/edit_add",
                        ], resolve),
                }

            ],
        },
        // {
        //     path: "/message",
        //     redirect: { path: "/message/List" },
        //     component: (resolve) => require(["@/views/message/index"], resolve),
        //     meta: { title: "报告" },
        //     children: [{
        //         path: "/message/List",
        //         meta: { title: "凤岗便民安全应用系统" },
        //         component: (resolve) =>
        //             require(["@/views/message/List"], resolve),
        //     }]

        // }
    ],
});

Router.prototype.goRefresh = function(num) {
    if (!this._goCore(num, true)) {
        //没有被拦截，就执行
        this.go(num || -1);
    }
};
//判断是否被拦截
Router.prototype._goCore = function(num, refresh) {
    num = num || -1;
    if (window.jsListener || window.webkit) {
        if (window.jsListener) {
            window.jsListener.doBackNum(Math.abs(num), refresh);
            return true;
        }
        if (window.webkit) {
            if (is_weixin()) {
                //如果是微信执行的操作
                return false;
            } else {
                //如果不是微信执行的操作
                if (window.webkit.messageHandlers) {
                    window.webkit.messageHandlers.doBack.postMessage({
                        num: Math.abs(num),
                        refresh: true,
                    });
                    return true;
                }
            }
        }
    } else {
        return false;
    }
};
router.beforeEach((to, from, next) => {
    var isNext = false; //判断是否进入下一页。原生交互则不需要进行下一步
    if (window.jsListener || (window.webkit && !is_weixin())) {
        if (from.fullPath == "/" || from.fullPath.startsWith("/transfer?")) {
            isNext = true;
        } else {
            if (window.jsListener) {
                if (
                    to == "null" ||
                    to.fullPath == "/index" ||
                    (to.fullPath && to.fullPath.startsWith("/transfer?"))
                ) {
                    window.jsListener.doBackNum(1, false);
                } else {
                    //正式发布使用这个方式
                    window.jsListener.NoPush("/h5/#" + to.fullPath);
                }
            } else if (window.webkit) {
                if (is_weixin()) {
                    //如果是微信执行的操作
                    isNext = true;
                } else {
                    //如果不是微信执行的操作
                    if (window.webkit.messageHandlers) {
                        if (
                            to == "null" ||
                            to.fullPath == "/index" ||
                            (to.fullPath && to.fullPath.startsWith("/transfer?"))
                        ) {
                            if (window.webkit.messageHandlers.doBack) {
                                window.webkit.messageHandlers.doBack.postMessage({
                                    num: 1,
                                    refresh: false,
                                });
                            } else {
                                isNext = true;
                            }
                        } else {
                            if (window.webkit.messageHandlers.NoPush) {
                                //正式发布使用这个方式
                                // window.jsListener.NoPush("/h5/#" + to.fullPath);
                                // 测试使用这个方式
                                window.webkit.messageHandlers.NoPush.postMessage(
                                    "/h5/#" + to.fullPath
                                );
                            } else {
                                isNext = true;
                            }
                        }
                    }
                }
            }
        }
    } else {
        if (to.fullPath && to.fullPath.startsWith("/h5/#/transfer?")) {
            router.push({
                path: to.fullPath.substring(to.fullPath.indexOf("url=") + 4),
            });
            isNext = false;
        }else if (
            from.path == "/MoreTodo" &&
            to.fullPath.indexOf("navTo=message") > -1
        ) {
            router.push({
                path: to.path,
            });

        } else if (
            from.path == "/Warning" &&
            to.fullPath.indexOf("navTo=warning") > -1
        ) {
            router.push({
                path: to.path,
            });
        } else if (process.env.VUE_APP_PLANTFORM == "FGBM" && to.path && !to.path.startsWith("/fgbm")) {
            console.log("路由调试3 fff")
            isNext = false;
        } else if (process.env.VUE_APP_PLANTFORM == "QTBM" && to.path && !to.path.startsWith("/qtbm")) {
            console.log("路由调试3 fff")
            isNext = false;
        }else if (process.env.VUE_APP_PLANTFORM == "HMBM" && to.path && !to.path.startsWith("/hmbm")) {
            console.log("路由调试3 fff")
            isNext = false;
        }  
        else if (process.env.VUE_APP_PLANTFORM == "CPNS" && to.path && !to.path.startsWith("/CPNS")) {
            console.log("路由调试3 fff")
            isNext = false;
        } else {
            console.log(to.fullPath)
            console.log(to.path)
            console.log(from.path)
            console.log("路由调试2")
            isNext = true;
        }
    }
    if (isNext) {
        //进入下一页
        window.scroll(0, 0);
        let { title, scale } = to.meta;
        let hasArrow = whiteList.indexOf(to.path) == -1;
        let pathList = [];
        if (process.env.VUE_APP_DEFAULT_PAGE == "/palogin") {
            pathList = ["/index2", "/couponactivity"]; //平安专属
        } else {
            pathList = [
                "/login",
                "/index2",
                "/couponactivity",
                "/transfer",
                "/wxwork",
                "/follow",
                "/followSuccess",
            ];
        }
        let hasNav = process.env.VUE_APP_HAS_NAV;
        let isTrue = pathList.indexOf(to.path) !== -1 ? true : false;
        if (hasNav == "false") {
            isTrue = true;
        }
        // console.log(hasArrow,'hasArrow');

        store.commit("updateHasArrow", hasArrow);
        store.commit("updatePath", isTrue);
        store.commit("updateTitle", title);

        let { isLogin } = store.state;
        if (hasNav == "true") document.title = process.env.VUE_APP_TITLE;
        else document.title = title;

        if (scale) {
            viewport.content =
                "width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=3.0";
        } else {
            viewport.content =
                "width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0";
        }
        next();
    }
});

export default router;
